Roblox Jelly block

I am trying to make a jello block where it stretches where the bottoms and top parts go.

I have tried using the script they showed in the tutorial but it does not seem to work because they only did one part and never made another video explaining:

local RUN = game:Getservice(“Runservice”)

local Top, Bottom = script.parent:WaitForChild(“Top”), script.parent:WaitForChild(“Bottom”)
local Outer, Inner = script.Parent:WaitForChild(“Outer”), script.parent:WaitForChild(“Inner”)

local mass = Outer:Getmass() – height * width * width
–width = (mass / height)*.5

RUN.Stepped:connect(function()
local p1 = Top.CFrameCFrame.new(0,Top.Size.Y.5,0).p
local p2 = Bottom.CFrameCFrame.new(0,Bottom.Size.Y-.5,0).p
local height = (p1-p2).Magnitude
local width = (mass / height)^.5
Outer.Size = Vector3.new(width, height, width)
Inner.Size = Outer.Size + Vector3.new(1,1,1)*-1
Outer.CFrame = Top.CFrame:lerp(Bottom.CFrame,.5)
Inner.CFrame = Outer.CFrame
end)

here is the clip of what I tried to make and here is the youtube video: Roblox Slime Mob Tutorial - YouTube

1 Like

I don’t think there is any more to explain, that video goes over the whole process.

Which part are you having trouble with?

Did you set up all the constraints and parts so they match what’s in this script?

I did but it still does not work. I tried to change the script but still no fix.

What errors specifically are you getting? What do you expect, and what’s actually happening?

The green part, is it anchored? If it is, unanchor it. Also weld it to the white parts. If you need a weld plugin i’ll link if for you.

on the youtube link the green part stretches but if i weld it it doesnt

Hm, no clue. Try to match up it’s properties from the one in the youtube video. If you can’t, try restarting the tutorial.

1 Like

Alright. Im gonna try that and respond back

1 Like

Open the output window. You might see some errors.

To open the Output window in Studio, click on the View tab and then on Output . (Debugging | Roblox Creator Documentation)

For example, you say game:Getservice instead of game:GetService.

It worked Thank you so much!!!
Here is a link for the slime model if you want it:

5 Likes