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

I tried to make the dead body ragdoll stick with a moving road is runservice dead, help?

Asked by 1 year ago
Edited 1 year ago

look i'm trying to make an obby but when player fell out of the car the dead body won't move

idk how to fix it can someone help me, thank you.

local TweenService = game:GetService("TweenService")
local part = script.Parent
local model = script.Parent.Parent
local cframelocation = script.Parent.Parent.StopLiner.Position

local Info =
 2, -- Length
 Enum.EasingStyle.Linear, -- Easing Style
 Enum.EasingDirection.InOut, -- Easing Direction
 -1, -- Times repeated
 false, -- Reverse
 0 -- Delay
local Goals =
        CFrame =;
local tween = TweenService:Create(part,Info,Goals)

local service = game:GetService("RunService")

local lastposition = script.Parent.Position

service.Stepped:Connect(function(_, deltatime)
    local currentposition = script.Parent.Position
    local deltaposition = currentposition - lastposition

    local velocity = deltaposition / deltatime

    script.Parent.AssemblyLinearVelocity = velocity

    lastposition = currentposition

i set the script to client idk why it won't work on a dead body?

please watch the video i sent and you'll know what i mean.

shut up dick we don't understand what you're saying so you deserve to have a -99999 reps lol TheLavaPigsYOUTUBE 10 — 1y
Oh crybaby nobody's answering your topic because no one understands you???????? TheLavaPigsYOUTUBE 10 — 1y
Yeah FUCK YOU Daddy_,Francisco :) TheLavaPigsYOUTUBE 10 — 1y
Nobody's gonna help you with that because that's an absolutely useless topic you had so fuck you poopy head TheLavaPigsYOUTUBE 10 — 1y

1 answer

Log in to vote
Answered by 1 year ago

here is your answer dickwad

while wait(0.1) do

Answer this question