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

How do I make this without crashing?

Asked by 8 years ago

I'm trying to make something like the ragdoll feature in Chaos Washers where you can move around and ragdoll at free will. However I can't figure out how to make the moving part. If anyone can help, that would be great.

    end
    end
    wait()
    gu = script.getup:Clone()
    gu.Parent = game.Players.LocalPlayer.PlayerGui
    gu.TextButton.refresh.Disabled = false
    cam.CameraSubject= game.Workspace:FindFirstChild(Player.Name.."doll").Torso
    Character.Parent = game.Lighting
    Mouse.KeyDown:connect(function(Key)
    if rdoll == true then
    repeat if (Key:lower() == "w") then             --Pick key to use
            local w = Instance.new("BodyThrust")
            w.Parent =  game.Workspace:FindFirstChild(Player.Name.."doll").Torso
            w.Name = "W"
            w.Force = Vector3.new(16,0,0)
                repeat wait() until (Key:lower() == "w") == false
            local w =  game.Workspace:FindFirstChild(Player.Name.."doll").Torso.W
            w:Destroy() end until rdoll == false
--if (Key:lower() == "s") then          --Pick key to use
--      rdoll = false
--Fix()
--end                   
    end          --End if                                    --End if                                            --End function


             --Activated the KeyDown function with GetMouse                      --End if                                    --End if                                                        --End function

--Watch the tutorial on youtube ~ Safok

    end
    ) 
    end --Ragdoll script by Safok, Free will part by Noble

Piece of code i need help with

If you need more, the whole thing is at www.pastebin.com/RZfdbgSq

Answer this question