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

R15 Character Parts Not Disabling?

Asked by 3 years ago

-- backstory Im making a punching type game which rely on the Hands of r15

-- problem when i click the button the right hand does not go to the designated cframe but instead stays on the player. if you know how to fix this please tell me so i cannot continue without this.

text = script.Parent.Parent.TextButton local lol = game:GetService('Players').LocalPlayer X1 = workspace.Dummy('HumanoidRootPart').CFrame.X Y1 = workspace.Dummy('HumanoidRootPart').CFrame.Y Z1 = workspace.Dummy('HumanoidRootPart').CFrame.Z text.MouseButton1Down:connect(function() lol.RightHand.Enabled = false

while true do

lol = game:GetService('Players').LocalPlayer X1 = workspace.Dummy('HumanoidRootPart').CFrame.X Y1 = workspace.Dummy('HumanoidRootPart').CFrame.Y Z1 = workspace.Dummy('HumanoidRootPart').CFrame.Z lol.RightHand = CFrame.new (X1,Y1,Z1) wait (0.1) local lol = game:GetService('Players').LocalPlayer X1 = workspace.Dummy('HumanoidRootPart').CFrame.X Y1 = workspace.Dummy('HumanoidRootPart').CFrame.Y Z1 = workspace.Dummy('HumanoidRootPart').CFrame.Z lol.RightHand = CFrame.new (X1,Y1,Z1) end

end)

Answer this question