I’m not totally sure if I did like anything right in these scripts, but nothing shows up in the output. I am asking for which module (i think that’s what it’s called) would make this work.
I was attempting to make an obby where you had to collect a (few) coin(s) to get to the next level. I made a small demo for myself before I started doing serious builds.
The green ball represents the coin. The green door represents the entry to the next level. The gray parts are representing the obby part. To start, I needed a system for the coin to go invisible when the player touches it. I also need a system for when the coin is collected for the door to open as well. I could probably figure out how to make the door go invisible if the coin is collected, however I do not know a module that can make the coin be collected.
I have tried the “Touched” module. That didn’t work, but maybe it was the way I wrote it out. I’m not good at ‘designing’ or ‘wording’ scripts so maybe that’s my problem.
I can see that the ‘=’ sign is an error, but I don’t know how to fix it. Leave me some info in the replies please!
TouchEnded is an event so I believe you can’t use boolean values on it.
Try this instead:
local coinCollected = script.Parent
coinCollected.Touched:Connect(function()
-- Change the transparency and turn collisions off to move to the next level.
end)