I'm using a script in a gui to grab a dog from Replicated Storage and add it to workspace. Keep getting Attempt to index nil with 'Parent'
Script:
script.Parent.MouseButton1Click:Connect(function() local player = script.Parent.Parent.Parent.Parent.Parent.Character local rs = game:GetService("ReplicatedStorage") rs.Doge:Clone().Parent = game.Workspace.Dogs end)