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

How to make refresh your character with a button?

Asked by 6 years ago

How to make refresh your character using a brick with click detector?

0
What do you mean by 'refresh'? Florian27 76 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

if you're talking about a GUI with a text button then you would do this (Must be in a local script):

player = game.Players.LocalPlayer

script.Parent.MouseButton1Down:Connect(function()

    if workspace:FindFirstChild(player.Name) then
        workspace[player.Name]:LoadCharacter()
    end

end)

Hope I helped.

Ad

Answer this question