Categories > Coding > Lua >
[REQUEST] can you see anything wrong with this script?
Posted
i have tried to make a dev panel though it doesnt seem to wanna work. It doesnt clone into playerGui like i want it to
game.Players.PlayerAdded:Connect(function(plr)
if plr.UserId == 2541487499 then
local gui = game.ReplicatedStorage.Panels.DevPanelGui:Clone()
if plr.PlayerGui:FindFirstChild("DevPanelGui") then
return
else
gui.Parent = plr.PlayerGui
end
end
end)
Replied
the else statement seems unneccessary since you are returning
also check that there is a child named "Panels" in replicatedstorage
Cancel
Post
what sup
i lo re c++
Replied
probably the fact that the panels should be in server storage otherwise ur basically f**ked cuz exploiters can just clone it the same way you do so make sure to parent it to serverstorage and make this a server script (if its not already)
Cancel
Post
i use arch btw
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post