So, I'm trying to make a platform that you can jump through, but when you land on it you're able to stand on it. This is what I came up with so far.
platform = game.Workspace.Platform platform.CanCollide = false platform.Touched:Connect(function(hit) wait(.1) platform.CanCollide = true end)
Any help please?
You can use either collision groups:
https://developer.roblox.com/en-us/articles/Collision-Filtering
Or I suppose you could have a check system that whenever a player is below a certain point in the world, set the part to non-collidable then when their above a certain point, set the part to collidable. I'd put the script inside of the player and have different parameters set for different part.
An example below:
local part1 = workspace.Part1 local part1_setpt = 5 -- Y studs in workspace local player = game.Players.LocalPlayer repeat wait() until player.Character local char = player.Character local head = char:WaitForChild('Head') while wait() do if head.Position.Y >= part1_setpt then part1.CanCollide = true else part1.CanCollide = false end end