I want to check when an player is under an object or part. This is an really important feature for one of my games that I need to add. I can’t figure out how I’d do this. May it be raycasting or something simpler or complexed.
Any help is appreciated.
Valkyrop
(JustAGuy)
April 13, 2022, 9:08am
#2
Hello
Maybe one of these might help :
I want to make a system so when player’s camera is under something some sound plays and if above player’s camera there’s no object different sound plays? how can I make it? And is there even a way to make it?
Iam creating a game like Power Simulator, so i started create the training areas, i want check when player enter on area and when player leave, i tried used Touch and TouchEnded(the area is a Part), but every times touch and touchended active together, iam 2 days traying fix that, anyone can helpme ?
[Activing Together]
Code:
--Variables
local Part = script.Parent
local module = require(game.Workspace:WaitForChild("ModuleScript"))
local debounce = false
script.Parent.Touched:Connect(fun…
What do I want to achieve?
I’m trying to make a snow script in StarterCharacterScripts that will only show the snow particles when a player is not under a part
What’s the problem?
I have no idea how I would do that at all
Is there a way using
Instance.Touched:Connect(function() end)
Can I detect if a players HumanoidRootPart is above the part.
XRHTech
(MistiikDev)
April 13, 2022, 9:08am
#3
You can fire a ray from the character’s Head into it’s Up vectors component
1 Like
Thanks, that actually did work!
1 Like