Help with 'Triggered' Is not a valid member of 'Part'

What do you want to achieve?
Help with ‘Triggered’ is not a valid member of ‘Part’

What is the issue?
After watching multiple tutorials I’m making a shop that opens with a ProximityPrompt but it’s not detecting “Triggered” Properly.

In the output is says: Triggered is not a valid member of Part “Workspace.Kiosk1.Part1”
However from my knowledge it ‘Triggered’ isn’t a part, it’s supposed to trigger the script to open the GUI

I’ve tried everything I could think of, I’m new to coding so this is becoming difficult.

This is my first post on DevForum so I hope what the photos I’ve included are helpful.

Anything Helps!

Wdym Triggered? No parts have “triggered” as a property.

Add a proximity prompt into the Part called “GUI” and then do this:

local part = game.Workspace.Kiosk1:WaitForChild("Part1")
local shop = script.Parent.Frame

part.ProximityPrompt.Triggered:Connect(function()
shop.Visible = true
end

Also, you SHOULDN’T put your script as a image

You shouldn’t make the script as a image.
You can go into configurations (when responding or making a topic, basically typing in devforum), and then select the first button/option. After that, inside the “```” you can write your code/script to help. If the script is long, it can help by scrolling instead of taking so much time just to take a picture

But, questioning my response

If you don’t want a proximity prompt but want it when a player touches the part, you can do this instead:

local part = game.Workspace.Kiosk1:WaitForChild("Part1")
local shop = script.Parent.Frame

part.Touched:Connect(function()
shop.Visible = true
end

Thank you! your first response worked perfectly!
And thank you for the tips as well! Greatly Appreciated.

You’re welcome! :smile: I’m happy you’re happy that i solved your problem!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.