#Proximity Prompt not working

1 messages · Page 1 of 1 (latest)

radiant raft
#
    local PP = Instance.new("ProximityPrompt")
    PP.Parent = PetInfo.PrimaryPart
    PP.ActionText = "Buy"
    PP.Enabled = true
    PP.ClickablePrompt = true
    PP.Name = "BuyPrompt"

Thats my sever script

local PetsFolder = game.Workspace:WaitForChild("PetsFolder")

local RSS = game:GetService("ReplicatedStorage")
local PetsModule = require(RSS.Pets)

local PRE = RSS:FindFirstChild("Purchase")

PetsFolder.ChildAdded:Connect(function(Pet)
    local PetPrimaryPart = Pet:WaitForChild(Pet.Name)
    local PP = PetPrimaryPart:WaitForChild("BuyPrompt")
    
    print("Child added")

    PP.Triggered:Connect(function()
        game.ReplicatedStorage.Purchase:FireServer(Pet.Name)
        print("PP")
    end)
end)

And thats my local script

#

I hope anyone can help cuz Idk tbh lol I looked at it a lot of time
the script as a whole works but the proximity part only doesn't

rough canopy
#

It doesn't appear?

weary notch
#

just make it that if child added, clone the proximity to the pet primary part, then its like

Proximity.Triggered:Connect(function(player)
local leaderstats = player:findfirstchild.....
functions here

radiant raft
tropic hazelBOT
#

studio** You are now Level 4! **studio

radiant raft