generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: weapon give gui messed up?

Previous Thread :: Next Thread 
eporter1 is not online. 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 is not online. eporter1
Joined: 03 Apr 2009
Total Posts: 1141
27 May 2015 08:09 PM
bump
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
27 May 2015 08:10 PM
platnium.Value
Report Abuse
eporter1 is not online. 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
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
27 May 2015 08:14 PM
'player' isn't a parameter of that event/function



-𝒩 | Anticodist, Scripter
Report Abuse
TimeTicks is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image