So i'm trying to make this morph GUI but everytime i fix an error i get a new one and im really stumped, what am i doing wrong?
Player = script.Parent.Parent.Parent Me = Player.Character or Player.CharacterAdded:wait() local Morphs = script.Parent.Morphy:GetChildren() script.Parent.MouseButton1Click:connect(function(r)
If you're running in a localscript, which you should be if it's a child of a Gui, you can use
game.Players.LocalPlayer
I would recommend you use a localscript under the Gui which fires a remote whenever you need server access.
You forgot the "local" before Player and Me. Here's the fixed script.
local Player = script.Parent.Parent.Parent local Me = Player.Character or Player.CharacterAdded:wait() local Morphs = script.Parent.Morphy:GetChildren() script.Parent.MouseButton1Click:connect(function(r)
Please reply if it worked and mark it as the answer.
Thanks.