Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

(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?

1 comment

0

What kind of collisions are you looking for? Does it have to be precise or can it be more approximate

1 answer

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

end)

This discussion is preserved as it was. New answers, comments, and votes are closed.