Categories > Coding > Lua >

[REQUEST] can you see anything wrong with this script?

Posts: 45

Threads: 18

Joined: Aug, 2022

Reputation: 2

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)
  • 0

icedmilke222

Squidward

Posts: 53

Threads: 15

Joined: May, 2022

Reputation: 2

Replied

the else statement seems unneccessary since you are returning

also check that there is a child named "Panels" in replicatedstorage

  • 0

what sup

i lo re c++

Posts: 1430

Threads: 71

Joined: May, 2022

Reputation: 20

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)

  • 0

i use arch btw

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )