I've got this script:
`function onTouched(m)
p = m.Parent:findFirstChild("Humanoid")
if p ~= nil then
p.Torso.CFrame = CFrame.new(0,-10,13644) --Change the numbers here to the position you want the humanoid to teleport to.
end
end
script.Parent.Touched:connect(onTouched)
I want to make it randomly spawn Players that touch the brick and when they spawn they go to a random spot in a selected area. Any ideas on how to do this?
`

1 comment
:findFirstChild() and :connect is decaperated, instead use :FindFirstChild() and :Connect