before i speak, no devforum moderators, this post is not about me wanting scripts
yeah anyways lets get into the topic
how do you think i can make portal gels in roblox? should i just make them change your speed and jumppower or is there more ways i can make it?
if you dont know what i mean by portal gels:
1 Like
I might just be stupid. But can you explain what a portal gel is?
1 Like
search up “portal 2 gels” on google
1 Like
Okay so when a player touches this gel. Have the function increase the JumpPower.
1 Like
i cant make this part with them doe
(notice the autojump the gels make)
1 Like
You can use decals to make this?
1 Like
read my comment again thats not my point
im talking about how the gels make you autojump when you do that part in the video
you cant make that when it only changes your speed and jumppower
1 Like
ok, i just had a idea, what if i use a autojump script on the jump thing?
1 Like
iirc, Your can Just do humanoid.Jump = true
you might want to set the gravity lower to make the player jump higher.
If you don’t want to do that though you can set the velocity on the y axis on the gel to be equal to some number (Like 300, or 400, or something). Make sure the gel part is anchored to do this.
Now, if your gel part has an angle like this:
They will still jump straight up. Let me know if you don’t like this behaviour, and I will post a fix.
3 Likes
ok im gonna try that, but hey uh do i use the humanoid jump true thing directly or i use it on a script that has on touch function thingy? (sorry im a beginner to scripts)
1 Like
Ok
gel.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
humanoid.Jump = true
workspace.Gravity = 196.2 -- Set this to whatever you want though
elseif hit.Parent.Parent:FindFirstChild("Humanoid") then
humanoid.Jump = true
workspace.Gravity = 196.2 -- Set this to whatever you want though
end
end)
Feel free to mark it as a solution if it worked.
2 Likes
oh- oh my god holy heck dude you didnt need to script all that!
well uh thank you so much bro! you are the best, wow
2 Likes
uh hey sorry but it gives an error on the humanoid part
1 Like
Oops! Thanks for telling me that. Here is a fix:
gel.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent:FindFirstChild("Humanoid").Jump = true
workspace.Gravity = 196.2 -- Set this to whatever you want though
elseif hit.Parent.Parent:FindFirstChild("Humanoid") then
hit.Parent.Parent:FindFirstChild("Humanoid").Jump = true
workspace.Gravity = 196.2 -- Set this to whatever you want though
end
end)
Sorry about that.
1 Like
i just tested it, it works very well! thanks again dude. you are very epic
1 Like