Sorexus
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 124 |
|
|
| 21 Dec 2013 11:35 AM |
nlen = string.len(script.Parent.Name) rlen = nlen - 5 name = string.sub(script.Parent.Name,1,rlen)
object = game.Lighting:findFirstChild(name) error = game.Lighting.ErrorGui tool = Instance.new("Tool")
script.Parent.Parent.LocalPlayer.Chatted:connect(function(msg) if string.sub(msg, 1, 5) == "give/" then player = string.sub(msg, 6) len = string.len(player) for i,v in pairs(game.Players:GetChildren()) do if string.sub(v.Name,len) == player then tool:clone().Parent = v.BackPack else error:Clone().Parent = script.Parent.Parent.LocalPlayer end end end end)
No out put :/ |
|
|
| Report Abuse |
|
|
Sorexus
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 124 |
|
|
| 21 Dec 2013 11:48 AM |
| Nvm.. I forgot to make it local script -FacePalm- |
|
|
| Report Abuse |
|
|
Sorexus
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 124 |
|
|
| 21 Dec 2013 12:08 PM |
| Nvm.. It still doesn't work... |
|
|
| Report Abuse |
|
|
Sorexus
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 124 |
|
| |
|
Sorexus
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 124 |
|
| |
|
Sorexus
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 124 |
|
| |
|
Sorexus
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 124 |
|
| |
|
Sorexus
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 124 |
|
| |
|
Sorexus
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 124 |
|
| |
|