Coins script when touching part adds +1 to gui. Works with a part, although when i try with a model it doesnt.
Starter character scripts script
Server script service
GUI
Coins script when touching part adds +1 to gui. Works with a part, although when i try with a model it doesnt.
Starter character scripts script
Did you make sure to define the local variables correctly and can I please see how the model looks in the explorer?
Guessing that ‘Coin’ is a model…
Models do not have a .Touched event. So instead you could check if ‘Coin’ is a model, and then get a random ‘BasePart’ from model and use .Touched for that.

Also all the scripts i have done are sent here
Yeah, coin is a model ive already done that
If coin is a model, you need to add the touched event on the part or union that is inside the model
on starter character scripts script change the “Coin.Touched” to this, and change the “the part name” text to the part/union name that is inside your model
Coin["the part name"].Touched:Connect(function()
Uhm so now when i touch the model “coin” it records coins although the part no longer destroys, and as long as humanoid is touching it, it records it. As previously i want it to disappear when touched
ah, i worked it out thank you. Thanks for your time
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.