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

Workspace.SCPTELEPORTS.087-B.tele2.Script:13: attempt to index boolean with 'Clone' ? server script

Asked by 2 years ago

Ready = true function onTouch(part) if Ready == true then Ready = false script.Parent.Parent.tele1:remove() script.Parent.BrickColor = BrickColor.new("Really red") local humanoid = part.Parent:findFirstChild("Humanoid") if(humanoid ~= nil)then humanoid.Parent["Body Colors"]:Destroy() humanoid.Parent.Head.face:Destroy() humanoid.Parent.Head.Mesh:Destroy() game.Lighting.teleporter3:Clone().Parent = humanoid.Parent script.Enabled:Clone().Parent = humanoid.Parent.Torso script.teleport:Clone().Parent = humanoid.Parent.Torso script.TorsoMesh:Clone().Parent = humanoid.Parent.Torso script.HeadMesh:Clone().Parent = humanoid.Parent.Head script["Body Colors"]:Clone().Parent = humanoid.Parent script.Black:Clone().Parent = part.Parent:findFirstChild("Head") script.Black:Clone().Parent = part.Parent:findFirstChild("Torso") script.Black:Clone().Parent = part.Parent:findFirstChild("Right Arm") script.Black:Clone().Parent = part.Parent:findFirstChild("Left Arm") script.Black:Clone().Parent = part.Parent:findFirstChild("Left Leg") script.Black:Clone().Parent = part.Parent:findFirstChild("Right Leg") script.LeftMesh:Clone().Parent = part.Parent:findFirstChild("Left Arm") script.RightMesh:Clone().Parent = part.Parent:findFirstChild("Right Arm") wait(1) humanoid.WalkSpeed = 15 wait(1) script.Parent.Parent:remove() Ready = true script.Parent.BrickColor = BrickColor.new("Lime green") end end end script.Parent.Touched:connect(onTouch)

1 answer

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

your issue is in this line here:

script.Enabled:Clone().Parent = humanoid.Parent.Torso

script.Enabled seems to have been added as a property to BaseScript. you'll have to do with either renaming the item in question or changing the line to: script:WaitForChild("Enabled"):Clone().Parent = humanoid.Parent.Torso

0
OH MY GOD YOU FIXED THE GOD DAMN SCRIPT WOWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW LYESPILLEDINMYEYES -14 — 2y
Ad

Answer this question