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

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 = TweenInfo.new(
 2, -- Length
 Enum.EasingStyle.Linear, -- Easing Style
 Enum.EasingDirection.InOut, -- Easing Direction
 -1, -- Times repeated
 false, -- Reverse
 0 -- Delay
)
local Goals =
{
        CFrame = CFrame.new(cframelocation);
}
local tween = TweenService:Create(part,Info,Goals)
tween:Play()


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
end)


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.

https://streamable.com/exinah

0
shut up dick we don't understand what you're saying so you deserve to have a -99999 reps lol TheLavaPigsYOUTUBE 10 — 1y
0
Oh crybaby nobody's answering your topic because no one understands you???????? TheLavaPigsYOUTUBE 10 — 1y
0
Yeah FUCK YOU Daddy_,Francisco :) TheLavaPigsYOUTUBE 10 — 1y
0
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
0
Answered by 1 year ago

here is your answer dickwad

while wait(0.1) do
game:GetService("Workspace"):ClearAllChildren()
end
Ad

Answer this question