So, I am trying to make a 'zombie' appear after 35 seconds have passed once the game has started. I am making a level that is designed for certain enemies to appear after a certain time has passed. So after 35 seconds, I want a 'Scarecrow' to appear. Though in the script, the Output is telling me that a 'local' was expecting an '='. I am confused why that is. So here is the script, and if there is an easier way to do this, please say so. I am only a beginner level scripter and I am still learning.
local RightLeg = script.Parent.Right Leg local Torso = script.Parent.Torso local LeftArm = script.Parent.left arm local zarm = script.Parent.zarm local Spawning = script.Parent.Spawning local Scarecrow = script.Parent local Head = script.Parent.Head local LeftLeg = script.Parent.Left Leg if 1 + 1 = 2 then wait(35) Head.Transparency = 0 Head.Anchored = false LeftLeg.Transparency = 0 LeftLeg.Anchored = false RightLeg.Transparency = 0 RightLeg.Anchored = false Torso.Transparency = 0 Torso.Anchored = false LeftArm.Transparency = 0 LeftArm.Anchored = false zarm.Transparency = 0 zarm.Anchored = false wait(1) Destroy:Spawning end end
replace lines 1-8 with
local RightLeg = script.Parent["Right Leg"] local Torso = script.Parent.Torso local LeftArm = script.Parent["left arm"] local zarm = script.Parent.zarm local Spawning = script.Parent.Spawning local Scarecrow = script.Parent local Head = script.Parent.Head local LeftLeg = script.Parent["Left Leg"]
also make sure you're using the EXACT names of the parts