1 | function Click(mouse) |
2 | script.Parent.Parent.Parent.Parent.Parent.CharacterAppearance = |
4 | script.Parent.Parent.Parent.Parent.Parent.Character.Position( 240.2 , 0.5 , - 246.4 ) |
5 | end |
6 |
7 | script.Parent.MouseButton 1 Down:connect(Click) |
Use this instead :)
01 | local plr = game.Players.LocalPlayer |
02 | local button = script.Parent |
03 | local appearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13645" |
04 | local teleportLocation = Vector 3. new( 240.2 , 0.5 , - 246.4 ) |
05 |
06 |
07 | function Click() |
08 | plr.CharacterAppearance = appearance |
09 | plr.Torso.CFrame = CFrame.new(teleportLocation) |
10 | end |
11 |
12 |
13 |
14 | button.MouseButton 1 Down:connect(Click) |
And make sure it's a LocalScript instead of a Script