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

Help fix my unanchor when button clicked script? (UNANSWERED)

Asked by 10 years ago

Im making a map for Deathrun 2 and im changing the script so i can make the platform unanchor


-- Waiting Animation Decal = script.Parent.Decal Locked = game.Workspace.Data.Images.WaitTimers.Locked.Value ClockA = game.Workspace.Data.Images.WaitTimers.ClockA.Value ClockB = game.Workspace.Data.Images.WaitTimers.ClockB.Value ClockC = game.Workspace.Data.Images.WaitTimers.ClockC.Value ClockD = game.Workspace.Data.Images.WaitTimers.ClockD.Value Duration = 6 -- Duration of the clock animation in seconds Platform = script.Parent.Parent.Parent.Platform function Activate() -- Trap wordt geactiveerd if script.Parent.BrickColor == BrickColor.new("Camo") then script.Parent.BrickColor = BrickColor.new("Deep orange") -- Check of trap al geactiveerd is for i = 1, 10 do wait(0.025) Platform.Anchored=false end wait(3) for i = 1, 10 do script.Parent.BrickColor = BrickColor.new("Bright red") -- Button wordt rood, cooldown begint for i = 1,Duration do -- Cooldown animatie Decal.Texture = ClockA wait(0.25) Decal.Texture = ClockB wait(0.25) Decal.Texture = ClockC wait(0.25) Decal.Texture = ClockD wait(0.25) end -- Einde cooldown animatie Decal.Texture = "" script.Parent.BrickColor = BrickColor.new("Camo") -- Reset van cooldown, Trap kan weer geactiveerd worden end end script.Parent.ClickDetector.MouseClick:connect(Activate) end
0
ummm wth happend to the code block? bubbaman73 143 — 10y
0
There needs to be an empty line between the start of the code block and the previous paragraph. User#2 0 — 10y
0
ill try to fix it O.o bubbaman73 143 — 10y
0
btw dont mind the strings, Wsly wrote this im just trying to change it bubbaman73 143 — 10y
View all comments (3 more)
0
What language is that in green? Tesouro 407 — 10y
0
I do believe it is Dutch. Maybe, maybe not. coo1o 227 — 10y
0
Dutch, Wsly wrote the script, im trying to change it a little bubbaman73 143 — 10y

Answer this question