I’m trying to make a teleport pad which only works if it’s touched by another pad for it to work
I don’t quite get what you mean, another teleport pad touching a teleport pad…??
If according to your title, then you could simply make a variable something called “isTouchingB”. If part A or B is touched, it sets isTouchingA or isTouchingB to true. And when A is touched, it checks if isTouchingB is true. If it is, it does an action.
local pad1 = workspace.Pad1
local pad2 = workspace.Pad2
pad1.Touched:Connect(function(hit)
if hit == pad2 then
print("Pad1 touched pad2!")
end
end)
This is fairly simple to achieve.
Thanks I’ll try doing that now and see if it works
You can check my tutorial, I made in DevForum Hope this helps!
How to make a Teleport System Tutorial - Resources / Community Tutorials - DevForum | Roblox