How do you make an arrow disappear when a checkpoint is touched?

I am trying to make a game where there is a red arrow that points to a checkpoint and when that checkpoint is touched, the arrow will disappear.

However, my code won’t work
I
I
V

arrow = workspace.arrow

script.Parent.Touched:Connect(function()
arrow.Parent = nil
end)

In the end, the arrow does not disappear. I know the connect function checks every time and that must be why it isn’t working but I don’t know an alternative for my code (btw the script is inside the checkpoint, not the arrow).

i guess put :Destroy() maybe and if you want to make it dissapear then you should use destroy

1 Like

you can use three thingys beside the one key to put your code into blocks `
And yes, try using :Destroy() on the arrow, Your trying to destroy the workspace, in the land of code thats illegal

arrow = workspace.arrow

script.Parent.Touched:Connect(function()
arrow:Destroy
end)

yes youre right i was a little wrong

1 Like

Ohh thanks. Both of you said the same thing but your explanation helped me.

we said the same thing because thats the only way to do lol