Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Script will only work once?

Asked by 10 years ago

I have a script

function tch(h)
if (h.Parent.Name == "Milk") then
h.Parent.Name = "Coffee Milkshake"
script.Parent.Sound2:Play()
script.Parent.Sound1:Play()
script.Parent.Parent.Spill.Transparency = 0.2
wait(0.5)
script.Parent.Parent.Spill.Transparency = 1
h.Parent.Drink1.BrickColor = BrickColor.new(38)
h.Parent.Drink1.Transparency = 1
end
end

script.Parent.Touched:connect(tch)

And it will only work once. Any help?

0
What's the output? If it works once it usually breaks towards the end of the script. soaprocks2 75 — 10y
0
Im not sure at what you mean by output My_Comment 95 — 10y
0
How does one right a script w/out knowing output? OniiCh_n 410 — 10y
0
@123that : In ROBLOX Studio click View > Output in the Toolbar, then run the Script/Game and see if anything shows up there. duckwit 1404 — 10y
View all comments (3 more)
0
Oh... I was totally lost at that question. I thought you meant "Where is the output that is in your script" I know what output is My_Comment 95 — 10y
0
there is no output... My_Comment 95 — 10y
0
Repeat until 4==5 woodengop 1134 — 9y

Answer this question