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

Is the game not recognizing RightShoulder?

Asked by 9 years ago
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?

0
Theres a blue line under RightShoulder on line 09 kingalpha1 15 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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

Just an idea...

0
I would use WaitForChild instead of FindFirstChild myself. Spongocardo 1991 — 9y
Ad

Answer this question