|
ok well i made a health brick. a brick that when u touch it it heals you.
it works. but if u shoot the brick with a paintball gun then it stops working.
i tried to and invisable cage around it. that you could walk through. i made the cage well. bit it didnt work. then grick would work untill some1 shoots it.
its in the middle of the map so it gets shot alot.
how do i stop it from getting messed up?
if u wanna look at the script ask. and ill go copy n paste it. |
|
WaffleBoyJoin Date: 2007-03-21 Post Count: 1377 |
It's a common problem. It happens with all scripted bricks that get hit with a paintball. your best bet is to have a constant regen. Like maybe a "wait(1)". It's only one brick right? How much lag can that cause? |
|
|
i donno how regen buttons work. could u make me 1? i am a ok scripter so i could tie it to the block myself. |
|
WaffleBoyJoin Date: 2007-03-21 Post Count: 1377 |
Put this into the Workspace.
brick = game.Workspace.Model
while true do
wait(1)
brick.Parent = nil
clone = brick:clone()
clone.Parent = game.Workspace
end |
|
|
ssdmiddlemanTop 100 PosterJoin Date: 2007-07-18 Post Count: 3385 |
Yeah well i would go with a regen button but you can go either way :) |
|
|
|
Just re-name the Health brick's name to "Humanoid". |
|
|
PCwienerJoin Date: 2007-03-03 Post Count: 3746 |
no. you need to add an 'if' line that checks if whats touching it is human- just get one from the toolbox. |
|
|
its has a if line to check for human |
|
WaffleBoyJoin Date: 2007-03-21 Post Count: 1377 |
Naw, my script would work best. Trust me, I'm a waffle. |
|
|
ya. and it did. hey waffle. could u make me a sympol leaderboard. its realy easy |
|
Iz9Join Date: 2011-12-20 Post Count: 666 |
hi stick |
|
trogyssyJoin Date: 2010-10-29 Post Count: 2322 |
Game.Players.PlayerAdded:connect(function(p)
local l=Instance.new("Model")
l.Parent=p
l.Name="leaderstats"
local KOs=Instance.new("IntValue")
KOs.Parent=l
local WOs=Instance.new("IntValue")
KOs.Parent=l
local Points=Instance.new("IntValue")
KOs.Parent=l
local Exp=Instance.new("IntValue")
KOs.Parent=l
end)
~~trogyssy, Scripting Helper and S&I Activist~~ |
|
trogyssyJoin Date: 2010-10-29 Post Count: 2322 |
There you go sir :P
~~trogyssy, Scripting Helper and S&I Activist~~ |
|
CawloneeJoin Date: 2014-03-03 Post Count: 2687 |
I can't tell if Luke was serious on this thread...
I don't even... |
|
SkriptsJoin Date: 2011-07-17 Post Count: 12960 |
it took me a miniute to realise that this was a 2007 post |
|
VoiditionJoin Date: 2012-07-14 Post Count: 1849 |
[ Content Deleted ] |
|
|
Hm, again with bumpin this old crap. |
|
|
My little Stick has surely gone a long way ;) |
|
trogyssyJoin Date: 2010-10-29 Post Count: 2322 |
Lol he had only joined a couple weeks ago, so I have no doubts he was serious...
~~trogyssy, Scripting Helper and S&I Activist~~ |
|
trogyssyJoin Date: 2010-10-29 Post Count: 2322 |
Lol mine doesn't work, here it is again
local values={"KOs", "WOs"}
Game.Players.PlayerAdded:connect(function(p)
local l=Instance.new("Model")
l.Name=leaderstats
l.Parent=p
for i, v in pairs(values) do
local f=Instance.new("IntValue")
f.Name=v
f.Parent=l
end
end)
===A silent guardian, a watchful protector, a colorful knight=== |
|