Because he exploiter can change booths all
how to i do patch?
Booth Script
game.ReplicatedStorage.Remotes.ChangeBooth.OnServerEvent:Connect(function(Player,Theme)
if Owner.Value == Player.Name then
Player:FindFirstChild("SystemData").BoothData.Value = Theme
local ChosenTheme = game.ServerStorage.BoothModels:FindFirstChild(Theme)
if ChosenTheme and ChosenTheme:IsA("Model") then
local BoothAppearance = Booth:FindFirstChild("BoothAppear")
if BoothAppearance then
BoothAppearance:Destroy()
end
setsmoke()
ChosenTheme = ChosenTheme:Clone()
ChosenTheme.Name = "BoothAppear"
ChosenTheme.Parent = Booth
ChosenTheme:PivotTo(Booth.PrimaryPart.CFrame)
BoothText(ChosenTheme)
end
end
end)
Client Remote
script.Parent.MouseButton1Click:Connect(function()
if player:FindFirstChild("BoothFolder"):FindFirstChild(script.Parent.Name) then
game.ReplicatedStorage.Remotes.ChangeBooth:FireServer(script.Parent.Name)
script.Parent.Parent.Parent.Visible = false
game.ReplicatedStorage.Remotes.SendPlayerNotiy:FireServer("Booth successfully changed " .. script.Parent.Name)
else
game.ReplicatedStorage.Remotes.SendPlayerNotiy:FireServer("Limited Booth Only.")
end
end)
Your remote event handler script on the Server does not check if the player truly owns the booth. Instead, the client does it, which allows the exploiter to send any value they wish and obtain whatever booth they want.
Remove the check on the client and add it to the Server script, that should fix your issue.
local id = 10697704 -- Your group id
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
if game.Players.LocalPlayer:GetRankInGroup(id) == 252 or game.Players.LocalPlayer:GetRankInGroup(id) == 253 then
game.ServerScriptService.ChangeBooth:Fire(player,script.Parent.Name)
script.Parent.Parent.Parent.Visible = false
game.ReplicatedStorage.Remotes.SendPlayerNotiy:FireClient(player,"Booth successfully changed " .. script.Parent.Name)
else
game.ReplicatedStorage.Remotes.SendPlayerNotiy:FireClient(player,"Booth for Admins and Mods only.")
end
end)
i think will add event remotes and Add serverscript script