#is this script good?

1 messages · Page 1 of 1 (latest)

opaque sandal
#

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)

latent pier
#

Feedbacks to your script quality?

opaque sandal
#

yues

proud locustBOT
#

studio** You are now Level 5! **studio

opaque sandal
#

and if it works

latent pier
#

Hardcoded strings.

#

Could've used collection service

opaque sandal
#

k

latent pier
#

Instead of proximity service

opaque sandal
#

will try tysm!

latent pier
#

add more safety checks

floral storm
#

your script is perfect!

#

i aprove

#

🤩🤩🤩

latent pier
#

okay i guess

opaque sandal
#

thanks ron