eporter1
|
  |
| Joined: 03 Apr 2009 |
| Total Posts: 1141 |
|
|
| 27 May 2015 07:50 PM |
what is wrong with this gui????
script.Parent.MouseButton1Click:connect(function(player)
local stats = player:FindFirstChild('leaderstats') if not stats then return end
local platnium = player:FindFirstChild('Platnium') if not platnium then return end
if platnium value >= 1 then game.ReplicatedStorage.StrongerSword:Clone().Parent = player.Backpack
end end)
idk if i messed it up completely or i did it right but something is messed up
dont yell at me |
|
|
| Report Abuse |
|
|
eporter1
|
  |
| Joined: 03 Apr 2009 |
| Total Posts: 1141 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
eporter1
|
  |
| Joined: 03 Apr 2009 |
| Total Posts: 1141 |
|
|
| 27 May 2015 08:13 PM |
| @TimeTicks, i put the . in and it still doesnt work, says player is a nil value |
|
|
| Report Abuse |
|
|
|
| 27 May 2015 08:14 PM |
'player' isn't a parameter of that event/function
-𝒩 | Anticodist, Scripter |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 27 May 2015 08:16 PM |
local script in gui
local player = game.Players.LocalPlayer local stats = player:FindFirstChild("leaderstats") local platnium = stats:FindFirstChild("Platnium")
script.Parent.MouseButton1Click:connect(function() if player and stats and platnium then if platnium.Value >= 1 then game.ReplicatedStorage.StrongerSword:Clone().Parent = player.Backpack end end end) |
|
|
| Report Abuse |
|
|
eporter1
|
  |
| Joined: 03 Apr 2009 |
| Total Posts: 1141 |
|
|
| 27 May 2015 08:22 PM |
| still says the same thing player is a nil value. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 27 May 2015 08:31 PM |
| well tats not my problem. I just tested it and it works. |
|
|
| Report Abuse |
|
|