Can you make something like a slim block in minecraft?

SO I currently have a script.

And it works fine except I don’t know how to make it like wipeout.

The Ball things move in and out and you jump on it and you jump up a little.

So is there a way to make you jump like that?

It would not be by increasing a player jumpower.

Not working script

local ts = game:GetService("TweenService")

local part = script.Parent
local deb = false

local info = TweenInfo.new(0.8)

local tween1 = ts:Create(part,info,{Position = Vector3.new(-248.3, 1.9, 118.2)})
local tween2 = ts:Create(part,info,{Position = Vector3.new(-248.3, 1.9, 67.8)})


script.Parent.Touched:Connect(function(hit)
	print("Make them jump like wipout Here")
end)


while true do
	wait(1.5)
	tween1:Play()
	wait(1.5)
	tween2:Play()
end

Whould HumanoidStateType be what you are looking for?

Something like this: humanoid:ChangeState(Enum.HumanoidStateType.Jumping)

This will make the player jump.

An easier method would be:

humanoid.Jump = true

I think it might be let me test it out

Yes but if he wants to make multiple jumps consecutive my method allows him to do also a double jump to make it more like a minecraft slime.

1 Like

Ah, I see. That makes a lot of sense.

1 Like

so would I do something Like

plr.JumpPower = 50
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
plr.Jumpower = 25
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
plr.Jumpower = Normal

So it then slows down the jump?

Yes it should be something like that.

1 Like

Ok bad scripter question lol

(I am not the best)

How would I fill in the varabiles plr and humanoid?

script.Parent.Touched:Connect(function(hit)
	local plr = 
	local humanoid =
	plr.JumpPower = 50
	humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
	plr.Jumpower = 25
	humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
	plr.Jumpower = Normal
end)
	local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
	if not plr then return end
    local char = plr.Character
    local humanoid = char:WaitForChild("Humanoid")

This does not seem to be working…

change plr.JumpPower = 50 to humanoid.JumpPower = 50 for all of them if you didn’t already. If that doesnt work then it means plr is nil and is returning.

You need to use the hit variable

local plr = game.Players:GetPlayerFromCharacter(hit.Parent)

1 Like

It still doesnt work.

It does not make the plr jump.

Because with that variable you get the instance of the player and not the character, what you wanna do is:

local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local char = plr.Character
local hum = char:WaitForChild("Humanoid")

huma.JumpPower = 50