|
| 17 Feb 2014 11:10 AM |
Can someone tell me what I did do wrong? The fault probably just is a typo..
function onClicked() if Player:IsInGroup(1018818) and Player:GetRankInGroup(1018818) > 1 then
local Model = game.Lighting.Whistle wait() local ModelCopy = Model:Clone() ModelCopy.Parent = Player.BackPack
script.Parent.ClickDetector.MouseClick:connect()
end end |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 17 Feb 2014 11:13 AM |
| function onClicked(Player) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Zomebody
|
  |
| Joined: 01 Jun 2010 |
| Total Posts: 789 |
|
|
| 17 Feb 2014 11:24 AM |
script.Parent.ClickDetector.MouseClick:connect()
That doesn't connect to anywhere. Replace it with this:
script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
Ultraw
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 6575 |
|
|
| 17 Feb 2014 11:25 AM |
| yeah do both my fix and Zome's |
|
|
| Report Abuse |
|
|
Tkdriverx
|
  |
| Joined: 27 May 2008 |
| Total Posts: 235 |
|
|
| 17 Feb 2014 11:27 AM |
function onClicked(Player) if Player:IsInGroup(1018818) and Player:GetRankInGroup(1018818) > 1 then
local Model = game.Lighting.Whistle wait() local ModelCopy = Model:Clone() ModelCopy.Parent = Player.BackPack end end
script.Parent.ClickDetector.MouseClick:connect(OnClicked) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
booz22
|
  |
| Joined: 24 Mar 2012 |
| Total Posts: 21 |
|
|
| 17 Feb 2014 11:52 AM |
function onClicked(LocalPlayer) if Player:IsInGroup(1018818) and Player:GetRankInGroup(1018818) > 1 then local Model = game.Lighting.Whistle wait() local ModelCopy = Model:Clone() ModelCopy.Parent = Player.BackPack end end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
try above |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Feb 2014 12:31 PM |
function onClicked(plr) if plr:IsInGroup(1018818) and plr:GetRankInGroup(1018818) > 1 then local mdl = game.Lighting.Whistle wait() local mdlcpy = mdl:Clone() mdlcpy.Parent = plr.Backpack end end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
--also, I would recommend placing "Whistle" into ServerStorage; more secure than Lighting |
|
|
| Report Abuse |
|
|