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