Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to detect something touching without thing moving?

Asked by
Yuuwa0519 197
5 years ago

Basically, i have a teleport that has intermission and teleports thing inside of it. However, when the intermission is over, it wont teleport the players unless they move so the part can detect. However, this makes some players not teleport when needed. Is there anyway to teleport person that is touching the part, wihtout moving so part will detect it? thanks. Below is the code i have right now.

code:

script.Parent.Touched:connect(function(hit)

if hit.Parent:FindFirstChild('Humanoid') then

hit.Parent.Head.CFrame = CFrame.new(-169.6, 6, 224.1)

end

end)
0
The player would have to be on top of the part, so you probably shouldn't try doing it. DeceptiveCaster 3761 — 5y
0
Also, do not use the Head's CFrame. Use the HumanoidRootPart's CFrame. DeceptiveCaster 3761 — 5y
0
The touched event will run when the part is touched. If the action cant be preformed in that moment the you could try creating a queue and/or checking if they are still touching the part after the intermission. Never done anything like that before though. doncellanerdy 21 — 5y
0
I will try thx. Yuuwa0519 197 — 5y

Answer this question