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

can some tell me why this won't run in sb? [closed]

Asked by 8 years ago
01local Player = game.Players.LocalPlayer
02local Character = game.Workspace:WaitForChild(Player.Name)
03local Torso = Character:WaitForChild("Torso")
04local LArm = Character:WaitForChild("Left Arm")
05local RArm = Character:WaitForChild("Right Arm")
06 
07local Weld = Instance.new("Weld",LArm)
08Weld.Part0 = LArm
09Weld.Part1 = Torso
10Weld.C0 = CFrame.new(1.5,0,0)
11 
12local Target = Weld.C0 * CFrame.new(0,1,0) * CFrame.Angles(0,0,math.rad(45))
13 
14local Speed = 0.4
15wait(3)
16 
17game:GetService("RunService").RenderStep­ped:connect(function()
18Weld.C0 = Weld.C0:lerp(Target,Speed)
19end)
0
What are you asking? TheHospitalDev 1134 — 8y
0
^ User#11440 120 — 8y

Closed as Not Constructive by gskw, TheHospitalDev, and User#6546

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Vaeb 30
8 years ago

You need to remove the current Shoulder motor otherwise your new Weld won't affect the arm. Like this:

01local Player = game.Players.LocalPlayer
02local Character = game.Workspace:WaitForChild(Player.Name)
03local Torso = Character:WaitForChild("Torso")
04local LArm = Character:WaitForChild("Left Arm")
05local RArm = Character:WaitForChild("Right Arm")
06 
07Torso:WaitForChild("Left Shoulder"):Destroy()
08 
09local Weld = Instance.new("Weld",LArm)
10Weld.Part0 = LArm
11Weld.Part1 = Torso
12Weld.C0 = CFrame.new(1.5,0,0)
13 
14local Target = Weld.C0 * CFrame.new(0,1,0) * CFrame.Angles(0,0,math.rad(45))
15 
View all 21 lines...
Ad