Make it so you can go through a cloud and also stay on top

How do I make a cloud that you can go through it from down, but you can also stay on top of it?

You can put a part with transparency = 1 inside the cloud, then set CanCollide = true and CollisonGroupId = 2 for that part.
Btw this is only work with the top and the bottom of the part

i want it that you can jump through it tho

How about you make the player able to go-through the cloud, and when they are about to reach the top they hit a teleporter that teleports them on top an invisible part that is on top of the cloud. So it looks like the player is walking on the cloud.

good idea but i want to do it like the cloud jumping games

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

-- This value is used to prevent the player from falling through
-- the cloud because of some physics inaccuracy.
-- Adjust it based on how fast the player can be falling when they hit the cloud.
-- A smaller value may be enough, or a bigger may be needed.
local MAX_CANCOLLIDE_TRUE_DEPTH = 1

local cloudPart = -- the part that the player should jump through or stand on

local plr = Players.LocalPlayer

local function updateCanCollide()
    local char = plr.Character
    if not char then
        return
    end
    local hum, hrp = char:FindFirstChild("Humanoid"), char:FindFirstChild("HumanoidRootPart")
    if not (hum and hrp) then
        return
    end
    cloudPart.CanCollide = hrp.Position.Y - hrp.Size.Y / 2 - hum.HipHeight >= cloudPart.Position.Y + cloudPart.Size.Y / 2 - MAX_CANCOLLIDE_TRUE_DEPTH
end

RunService.Heartbeat:Connect(updateCanCollide)
1 Like

Thank you I will try that when I got time :slight_smile:

You can jump through the bottom and stay on top of the part!