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: help with level swords.

Previous Thread :: Next Thread 
sleaj is not online. sleaj
Joined: 18 Dec 2016
Total Posts: 1063
01 Nov 2017 04:10 PM
example:

you got 50 kills, get a new sword
Report Abuse
sleaj is not online. sleaj
Joined: 18 Dec 2016
Total Posts: 1063
01 Nov 2017 04:13 PM
b
Report Abuse
Wrathoxic is not online. Wrathoxic
Joined: 29 May 2013
Total Posts: 1950
01 Nov 2017 04:15 PM
LevelValue = Where.Ever.Your.IntValue.For.Kills.Is

LevelValue.Changed:Connect(function()
if LevelValue.Value == 50 then
--Do stuff if it's 50
end
end)


Report Abuse
sleaj is not online. sleaj
Joined: 18 Dec 2016
Total Posts: 1063
01 Nov 2017 04:16 PM
and to get the sword?
Report Abuse
Wrathoxic is not online. Wrathoxic
Joined: 29 May 2013
Total Posts: 1950
01 Nov 2017 04:22 PM
print("Learn basic LUA")


Report Abuse
ShadowR_Dev is not online. ShadowR_Dev
Joined: 28 Feb 2016
Total Posts: 99
01 Nov 2017 04:26 PM
Hmm.. Really can't explain this to you but how about this.
weapon is meant to be the path where the folder is e.g game.ReplicatedStorage.Weapon

I'm imagining you're not working with FE so here's as simple as it gets...

stat.Changed:connect(function(value)
if value == 50 then
local weapon = weapon:Clone()
weapon.Parent = game.Players.LocalPlayer.Backpack
end
end)


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