My script is
Player = script.Parent.Parent.Parent.Parent
function onClicked()
script.Disabled = true
if Player.Character:FindFirstChild("Natsu Dragneel(FDS)") == nil then
if Player.Backpack:FindFirstChild("Natsu Dragneel(FDS)") == nil then
Natsu = game.ReplicatedStorage["Natsu Dragneel(FDS)"]:Clone()
Natsu.Parent = Player.Backpack
end
end
wait()
script.Disabled = false
end
script.Parent.MouseButton1Click:connect(onClicked)
I need help because I want to clone the hopper bin to the players backpack. The script won't work with a Image button but it will work with a text button. What am I doing wrong?
Also my explorer say this in the order Starter Gui Screen Gui Frame Image Button Script

15 comments
Thanks
But it still won't work?
May you tell me what it says in the output?
ok
Also may I ask where is script.Parent.Parent.Parent.Parent located?
17:50:20.218 - Character is not a valid member of PlayerGui 17:50:20.219 - Script 'Players.Player.PlayerGui.Character Selection.Frame.Natsu.Sc', Line 5 17:50:20.220 - Stack End 17:50:20.221 - Disconnected event because of exception 17:50:22.807 - doLoadAppearance http://www.roblox.com/Asset/?versionid=359516628&serverplaceid=108284977 time: 5.036288
Try this "Player = game.Players.LocalPlayer.Backpack"
17:53:42.311 - Character is not a valid member of Backpack 17:53:42.313 - Script 'Players.Player.PlayerGui.Character Selection.Frame.Natsu.Sc', Line 5 17:53:42.315 - Stack End
And I still can't click the GUI
Remove ".Backpack" from Player = ...
17:59:45.799 - Auto-Saving... 17:59:53.612 - Character is not a valid member of Backpack 17:59:53.616 - Script 'Players.Player.PlayerGui.Character Selection.Frame.Natsu.Sc', Line 5 17:59:53.619 - Stack End
I don't get it... Backpack no longer exists in Player = ... Character should be independent, I gotta go for now, sorry I couldn't help.
It is ok
I don't know what I did but I fixed it THANK YOU !!!
Glad to see your code now works! Enjoy!