Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I change this from making them die, to making them teleport and look like the user?

Asked by
Akozta 40
10 years ago
1function Click(mouse)
2script.Parent.Parent.Parent.Parent.Parent.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13645"
3script.Parent.Parent.Parent.Parent.Parent.Character:BreakJoints()
4end
5 
6script.Parent.MouseButton1Down:connect(Click)
0
It's late as in it's night time; also, please accept my answer. (Click the accept button next to my answer.) EzraNehemiah_TF2 3552 — 10y
0
Hello? EzraNehemiah_TF2 3552 — 10y
0
Ya I accepted it Akozta 40 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago

Use LoadCharacter. LoadCharacter Can also be used to make custom respawn times.

1game.Players.Player1:LoadCharacter()

Finished Product:

1function Click(mouse)
2script.Parent.Parent.Parent.Parent.Parent.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13645"
3script.Parent.Parent.Parent.Parent.Parent:LoadCharacter()
4end
5 
6script.Parent.MouseButton1Down:connect(Click)

Sorry, I hope It helps, It's late.

1
He meant it's late at night for him. Redbullusa 1580 — 10y
Ad

Answer this question