My Prompt Hat it's not working for me

I was trying to make my Military Hats, so I was researching something,
So I have idea I have to make an Formal Cap, here’s the pictures why does not work.

So the script still not working when I fix rapidly,

Pictures & Videos:

Hat Properties:
Screenshot 2021-06-06 153057

Core Script:

The Video for testing:

NOTE: I know how script, I experienced on Gui then im gonna experience on Hat Giver, how do I fix it?
ALSO NOTE: Im new of this devforum member.

1 Like

Hello, there.

Prompt.Triggered:Connect(function(player)

Should be used. Why?

Prompt.Triggered

Fires when the prompt is triggered, even with HoldDuration.

function(player)

It returns the player who triggered the Prompt, not the part.

Lesson about ProximityPrompts

As said earlier, using the parameter in the function returns the player.


Prompt.PromptButtonHoldBegan

Is an event which fires when you start holding the prompt, usable for a picking lock sound or animation.


Prompt.PromptButtonHoldEnded

and

TriggerEnded

Should be the same, they both fire when the Prompt will get released.
This is all, for now. Here is the Developer Hub Page for more documentation

2 Likes

Maybe i’ll gonna use Triggered instead of TriggerEnded?

Already used with Triggered on line 6.

Also Thanks a lot for an Lesson and Help!

2 Likes