My code wont work but the output contains no errors. I added a print to mention in the output if its a success or not. Nothing gets thrown in. I’m trying to make a script in a zombie enable so Wave1 can begin.
Code:
local deb = false
script.Parent.Touched:Connect(function(hit)
local char = hit.Parent
local root = char:FindFirstChild("HumanoidRootPart")
if not root or deb then return end
deb = true
local Clone = game.ServerStorage.Maps.GrassIsles:Clone()
Clone.Parent = workspace
root.Position = Vector3.new(-483.357, -266.06, 336.087)
wait(1)
deb = false
local Success = false
game.Workspace:WaitForChild("GrassIsles").Waves.Wave1.Zombie1.Script.Disabled = false
if game.Workspace:WaitForChild("GrassIsles").Waves.Wave1.Zombie1.Script.Disabled == false then
Success = true
else
Success = false
print("Fail")
if Success == false then
game.Workspace:WaitForChild("GrassIsles").Waves.Wave1.Zombie1.Script.Disabled = false
end
end
end)
Please Help!