i have a script and i dont know if its good and there are some problems because i have multiple proxprompts on a plot and when a trigger one that is not the "GumballProx" and also is in my plot it says the warning? script: local Players = game:GetService("Players")
local ProximityPromptService = game:GetService("ProximityPromptService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local player = Players.LocalPlayer
local RollRemote = ReplicatedStorage.Remotes:WaitForChild("RollStud")
ProximityPromptService.PromptTriggered:Connect(function(prompt, player)
if not player then return end
if prompt.Parent.Name == "GumballProx" and prompt.Parent.Parent.Parent.Name == tostring(player:FindFirstChild("PlotNumber").Value) then
RollRemote:FireServer(player)
else
warn(player.Name .. " is on WRONG PLOT")
-- notify
end
end)
** You are now Level 5! **