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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
NoahG59
|
  |
| Joined: 29 Nov 2014 |
| Total Posts: 131 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 29 Nov 2014 |
| Total Posts: 131 |
|
| |
|
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
|
  |
| Joined: 29 Nov 2014 |
| Total Posts: 131 |
|
| |
|
NoahG59
|
  |
| Joined: 29 Nov 2014 |
| Total Posts: 131 |
|
| |
|