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 » Game Design
Home Search
 

Re: Script Help?

Previous Thread :: Next Thread 
NoahG59 is not online. NoahG59
Joined: 29 Nov 2014
Total Posts: 131
04 Sep 2016 02:35 PM
Would it be possible to make a script to give gear from lighting for owning a model? I tried and nothing I've done has worked, could someone make this for me? Thanks for reading!
Report Abuse
CaptainFuzzyBoots is not online. CaptainFuzzyBoots
Joined: 05 Apr 2014
Total Posts: 243
04 Sep 2016 02:45 PM
owning a model?

could you be more specific?


here is basic code to give a you tools though.


game.Players.PlayerAdded(function(plr)
if plr.Name == "NoahG59" then
local clone = game.Lighting.["inserttoolname here"]:Clone()
clone.Parent = plr.Backpack
end)
Report Abuse
Draphant is not online. Draphant
Joined: 13 May 2012
Total Posts: 700
04 Sep 2016 02:46 PM
game.Players.PlayerAdded:connect(function(plr)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,30331986) then--model id here
print(plr.Name .. " owns the Midnight Shades")
else
print(plr.Name .. " doesn't own the Midnight Shades")
end
end)


Report Abuse
NoahG59 is not online. NoahG59
Joined: 29 Nov 2014
Total Posts: 131
04 Sep 2016 02:56 PM
For owning a model (like this one https://www.roblox.com/Giant-Bloxy-Cola-item?id=487633925 )
Report Abuse
CaptainFuzzyBoots is not online. CaptainFuzzyBoots
Joined: 05 Apr 2014
Total Posts: 243
04 Sep 2016 03:17 PM
game.Players.PlayerAdded:connect(function(plr)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,487633925)
clone = game.Lighting.Sword:Clone()

clone.Parent = plr.Backpack
else
print 'error'
end
end)
local h = Instance.new("Hint")
h.Parent = game.Workspace

while true do


h.Text = 'CaptainFuzzyBoots Rocks'
wait(3)
h.Text = 'you should friend CaptainFuzzyBoots'
wait(3)




----------------------------------------------------------------------
There you go just change sword to whatever tool you have in lighting:)
copy and Paste EVERYTHING into a script in Workspace
Report Abuse
CaptainFuzzyBoots is not online. CaptainFuzzyBoots
Joined: 05 Apr 2014
Total Posts: 243
04 Sep 2016 03:18 PM
oops I made a boo boo here you go


game.Players.PlayerAdded:connect(function(plr)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,487633925)
clone = game.Lighting.Sword:Clone()

clone.Parent = plr.Backpack
else
print 'error'
end
end)
local h = Instance.new("Hint")
h.Parent = game.Workspace

while true do


h.Text = 'CaptainFuzzyBoots Rocks'
wait(3)
h.Text = 'you should friend CaptainFuzzyBoots'
wait(3)
end
Report Abuse
Caiden57976 is not online. Caiden57976
Joined: 02 Sep 2015
Total Posts: 2
04 Sep 2016 04:55 PM
Got This
Report Abuse
NoahG59 is not online. NoahG59
Joined: 29 Nov 2014
Total Posts: 131
05 Sep 2016 03:12 PM
Thanks for your help! c:
Report Abuse
NoahG59 is not online. NoahG59
Joined: 29 Nov 2014
Total Posts: 131
06 Sep 2016 01:55 PM
Fuzzy, your script isn't working correctly.. Can anybody fix it? Is it possible to give stuff in-game for owning models? (Yes, the gear is in lighting and I changed Sword in script to its exact name)Please help?
Report Abuse
NoahG59 is not online. NoahG59
Joined: 29 Nov 2014
Total Posts: 131
06 Sep 2016 02:34 PM
I'll be back tomorrow to check if anybody has helped!
Report Abuse
NoahG59 is not online. NoahG59
Joined: 29 Nov 2014
Total Posts: 131
07 Sep 2016 12:43 PM
bump, anyone?
Report Abuse
llaserx is not online. llaserx
Joined: 10 Dec 2011
Total Posts: 53069
07 Sep 2016 01:13 PM
Make it ur self drae already posted how to see if player has the model....
Report Abuse
NoahG59 is not online. NoahG59
Joined: 29 Nov 2014
Total Posts: 131
08 Sep 2016 11:51 AM
Bumb?
Report Abuse
NoahG59 is not online. NoahG59
Joined: 29 Nov 2014
Total Posts: 131
08 Sep 2016 12:55 PM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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