Im Trying To Figure This Out And I Cant Seem To Find Any Solutions... Does Anyone Know How To Do This
have a clickdetector in a part and put in the following:
01 | local players = game:GetService( "Players" ) |
02 | local ClickDetector = script.Parent |
03 |
04 | ClickDetector.MouseClick:Connect( function () |
05 | for i,v in pairs (workspace:GetChildren()) do |
06 | if players:GetPlayerFromCharacter(v) then |
07 | local hr = v:FindFirstChild( "HumanoidRootPart" ) |
08 | hr.CFrame = CFrame.new( 79.8 , 0.5 , - 63.6 ) |
09 | end |
10 | end |
11 | end ) |