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

7 comments

0

ummm wth happend to the code block?

0

There needs to be an empty line between the start of the code block and the previous paragraph.

0

ill try to fix it O.o

0

btw dont mind the strings, Wsly wrote this im just trying to change it

0

What language is that in green?

0

I do believe it is Dutch. Maybe, maybe not.

0

Dutch, Wsly wrote the script, im trying to change it a little