-
What i want to achieve I would like to script
-
The issue There are not tutorials of making strollers anywhere and the toolbox strolles are broken like this:
https://gyazo.com/7d21e9b68f2cd77159a1c1cddcfb7e22
https://gyazo.com/a79427bd4f626eb123d20d6311c686e7 -
What i want you to do I would like you to recommend me some videos/topics/API reference. Whatever you think i will learn with it
Part of the free model script:
function onTouched(hit)
if (hit.Parent:findFirstChild("Humanoid") ~= nil) and (script.Parent:findFirstChild("SeatWeld")) == nil then
script.Parent.Anchored = false
wait()
local weld = Instance.new("Weld")
weld.Name = "SeatWeld"
weld.Parent = script.Parent
weld.Part0 = script.Parent
weld.Part1 = hit.Parent:findFirstChild("Torso")
weld.C0 = CFrame.new(0, 3, 0, 1, 0, -0, 0, 0, 1, 0, -1, -0)
weld.C1 = CFrame.new( 0, 0.600000024, 0, 1, 0, -0, 0, 0, 1, 0, -1, -0)
hit.Parent.Humanoid.Sit = true
wait()
script.Parent.Anchored = true
for i = 1, math.huge do
wait()
if hit.Parent.Humanoid.Jump == true then
weld:remove()
end
end
end
end
script.Parent.Touched:connect(onTouched)