Hey there!
Recently I’ve been trying to make a Museum Robbery like Jailbreak.
In the Jailbreak museum robbery, once you hold e you get a bag on your back along with a money displayer.
The issue is that once I fire my proximity prompt, the server adds it for everyone and I do not want this. It has to add the bag to the player that fires it, not everyone
Scripts:
--proximityprompt
script.Parent.ProximityPrompt.Triggered:Connect(function(pModel)
script.Parent.bagEvent:Fire(pModel)
end)
--baggiver in staterchracterscripts
game.Workspace.MuseumRobbery.BagGiver.bagEvent.Event:Connect(function()
local pModel = script.Parent
local hum = pModel:WaitForChild("Humanoid")
local ss = game:GetService("ServerStorage")
local bag = ss:WaitForChild("Bag"):Clone()
hum:AddAccessory(bag)
end)
Video with error:
2021-05-05 18-37-29|video
(my apoligies if you have to download it.)
Any help is appreciated <3