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

How do I make an ImageLabel do something when it touches another ImageLabel?

Asked by 5 years ago

(Sorry if my english is bad)

I'm trying to make a game based in Space Invaders in a Gui and I need to make an Image Label teleport when it touches another Image Label, I tried with this script but it doesnt work

while true do
repeat
wait(0.000001)
local AL = script.Parent
local L = script.Parent.Parent.Laser
local B = script.Parent.Parent.Spaceship
if L.Position == AL.Position then 
L.Position = B.Position
end
until L.Position == AL.Position
end

How can I make it work?

0
What kind of collisions are you looking for? Does it have to be precise or can it be more approximate thebayou 441 — 5y

1 answer

Log in to vote
0
Answered by
Rynappel 212 Moderation Voter
5 years ago

Idk, maybe the end function hasn't been closed properly? Try using a bracket on em.

end)
Ad

Answer this question