✓ Accepted answer
Hello.
If you are using a LocalScript you would want to get the player before the Button is clicked. You would want to also get the character, as the player loads in before the character can. Try out this very simple script:
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Button = script.Parent
Button.MouseButton1Click:Connect(function()
local Torso = Character:WaitForChild("UpperTorso")
print(Torso)
end)
Hope this helps!
2 comments
BTW If your game is R6 try change UpperTorso to just Torso
Ah yes, that as well