1 | script.Parent.Touched:Connect( function (hit) |
2 |
3 | if hit.Parent:FindFirstChild( "HumanoidRootPart" ) then |
4 |
5 | hit.Parent.HumanoidRootPart.CFrame = CFrame.new(math.random(?)) |
6 |
7 | end |
8 |
9 | end ) |
To move the position of CFrame, it requires 3 values.
So you could do the following;
1 | CFrame.new(math.random(- 100 , 100 ),math.random(- 100 , 100 ),math.random(- 100 , 100 )) |