function onTouch(part) local Toucher = part.Parent:FindFirstChild("Humanoid") --The toucher
if Toucher ~= nil then --if someone touched our brick Toucher.Torso.CFrame = CFrame.new(-69.5, -6, -53)
end
end
fire1 = script.Parent fire1.Touched:connect(onTouch) --script for teleports you when you touch the part(fire1)
script.Parent.Touched:Connect(function(hit) --from here onwards, i really dont know what is wrong with the script to change body colors when you touch the part
end
local Toucher = fire1.Parent:FindFirstChild("Humanoid") wait(0) Toucher.Parent.FindFirstChild("Head").BrickColor = BrickColor.new(24) Toucher.Parent.FindFirstChild("Torso").BrickColor = BrickColor.new(23) Toucher.Parent.FindFirstChild("Left Arm").BrickColor = BrickColor.new(24) Toucher.Parent.FindFirstChild("Right Arm").BrickColor = BrickColor.new(24) Toucher.Parent.FindFirstChild("Left Leg").BrickColor = BrickColor.new(119) Toucher.Parent.FindFirstChild("Right Leg").BrickColor = BrickColor.new(119)
end
end
script.Parent.Touched:connect(onTouch) --so what im trying to do is to make a part that teleports the toucher as well as color thier body

1 comment
Please use code blocks.