Changing players character/controlling other players?
How would I do this?
I tried looking through person299's admin commands and copying that, but sadly it doesnt work.
you just loose character.
Heres what I have got (no errors, i can control my character but camera becomes unlinked)
01 | function respawn(player) |
03 | local ack 2 = Instance.new( "Model" ) |
04 | ack 2. Parent = game.Workspace |
05 | local ack 4 = Instance.new( "Part" ) |
07 | ack 4. CanCollide = false |
10 | ack 4. Position = Vector 3. new( 10000 , 10000 , 10000 ) |
12 | local ack 3 = Instance.new( "Humanoid" ) |
15 | player.Character = ack 2 |
23 | Player = Game.Players.LocalPlayer |
24 | Mouse = Game.Players.LocalPlayer:GetMouse() |
26 | Mouse.Button 1 Down:connect( function () |
27 | if Mouse.Target ~ = nil then |
28 | print ( "recieved " ..Mouse.Target.Name) |
29 | if Mouse.Target.Parent:FindFirstChild( "Humanoid" ) then |
30 | local clickedplayer = Game.Players:GetPlayerFromCharacter(Mouse.Target.Parent) |
32 | cloned = script.TimerGui:Clone() |
33 | cloned.Parent = Player.PlayerGui |
36 | cloned.Frame.TextLabel.Text = "Disguise time left:" ..i.. "s" |
Thanks