|
| 23 Apr 2016 12:09 PM |
This problem happens waaaay more than it should in almost every game I create, and it's insanely annoying. Usually I can fix it with a localscript, but I tried that this time and it didn't work. Anyway, the title is self-explanatory. I will just paste the script here. Help is greatly appreciated! Thank you.
script.Parent.MouseClick:connect(function(player) local plr = game.Players:FindFirstChild(player.Name) if plr then game.ServerStorage.Sushi["California Roll"]:Clone().Parent = plr.Backpack end end)
FallenTacoz |
|
|
| Report Abuse |
|
|
| |
|
Uzil
|
  |
| Joined: 02 Jun 2014 |
| Total Posts: 366 |
|
|
| 23 Apr 2016 12:34 PM |
I used to have the same problem.
repeat wait() until game.Players.LocalPlayer
script.Parent.MouseClick:connect(function(player) local plr = game.Players.LocalPlayer if plr then game.ServerStorage.Sushi["California Roll"]:Clone().Parent = plr.Backpack end end) |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 23 Apr 2016 12:49 PM |
should be a server script
script.Parent.ClickDetector.MouseClick:connect(function(player) game.ServerStorage.Sushi["California Roll"]:Clone().Parent = player.Backpack end)
|
|
|
| Report Abuse |
|
|