Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is the game not recognizing RightShoulder?

local enabled = true
Player = script.Parent.Parent
character = Player.CharacterAdded:wait();
mouse = Player:GetMouse()

function onKeyDown(key)
key = key:lower()
if key == "x" then
RightShoulder = Player.Character.Torso["Right Shoulder"]
Run = game:GetService("RunService")
for i = 1,10 do
	RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0.16)
	wait(5)
end	
	game.GetService("Chat"):Chat(Player.Character.Head, "First comes ROCK!")	
   end
end


mouse.KeyDown:connect(onKeyDown)

The Arm won't even move can someone help?

1 comment

0

Theres a blue line under RightShoulder on line 09

1 answer

Replace RightShoulder = Player.Character.Torso["Right Shoulder"] and put RightShoulder = Player.Character.Torso:FindFirstChild("Right Shoulder")

Just an idea...

1 comment

0

I would use WaitForChild instead of FindFirstChild myself.

This discussion is preserved as it was. New answers, comments, and votes are closed.