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

The game keeps saying UpperTorso is not a valid memeber of Player?

Asked by 6 years ago

`~~~~~~~~~~~~~~~~~

 Gee = game.Players.LocalPlayer
Torso = Gee.UpperTorso
Tool = script.Parent
handle = Tool:WaitForChild ("Handle")



Tool.Equipped:Connect(function() 

end) 

Tool.Activated:Connect(function()
    local SnowMan = game.ReplicatedStorage.Frosty:Clone()
    SnowMan.Parent = workspace
    SnowMan.position = Torso.Position

end)

~~~~~~~~~~~~~~~~~

The game keeps saying UpperTorso is not a valid member of player yet im in r15 and everything

1 answer

Log in to vote
1
Answered by
HaveASip 494 Moderation Voter
6 years ago

Because UpperTorso parent is not player. Its parent character Just type this on ur first line.

Gee = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
Ad

Answer this question