local players = game:GetService("Players")
local tool = script.Parent
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local b = Instance.new("BodyAngularVelocity",character["RightHand"])
end)
end)
tool.Equipped:Connect(function(mouse)
end)
tool.Activated:Connect(function()
end)
COMMUNITY QUESTION
why is my code not putting the instance of bodyangularvelocity in my characters righthand?
1 answer
Comparing the question to the code you have, I can see that you are putting a BodyAngularVelocity inside of the right hand of players that are joining the game, not your right hand.
local tool = script.Parent
local player = tool.Parent
player.CharacterAdded:Connect(function(character)
local b = Instance.new("BodyAngularVelocity",character.RightHand)
end)
tool.Equipped:Connect(function(mouse)
end)
tool.Activated:Connect(function()
end)
Also, you don't need to do this:
character["RightHand"]
Because there aren't any spaces in the name of the instance.
This discussion is preserved as it was. New answers, comments, and votes are closed.
