-
What do you want to achieve? I want player to be able to place “objects” on mouse click
-
What is the issue? The player can exploit the game when using remotes to place objects
-
What solutions have you tried so far? Trying to use server script to handle it, didn’t work/don’t know how
local player = game.Players.LocalPlayer
local background = script.Parent.Background
local GUI = script.Parent
local buttons = {}
local isBuilding = false
local buildButton = GUI.BuildButton
for _,v in pairs(script.Parent.Background.Slider:GetChildren()) do
if v:IsA("ImageButton") then
table.insert(buttons, v)
end
end
buildButton.MouseButton1Up:Connect(function()
isBuilding = not isBuilding
background.Visible = isBuilding
end)
--This is the only code i have so far