misgav11
|
  |
| Joined: 21 Apr 2011 |
| Total Posts: 3418 |
|
|
| 23 Aug 2011 01:09 PM |
the script works, but only for 5 sec ... can anyone tell me the problom or atlist fix it?
bin = script.Parent use = true
function onButton1Down(mouse) local hit = mouse.Target if hit ~= nil then mouse.Icon = "rbxasset://textures\\GunWaitCursor.png" if use == false then return end local type = hit.Parent.Info.Species.Value local age = hit.Parent:findFirstChild("Stats"):findFirstChild("Age") local c = age ~= nil and hit.Parent.Info.Owner.Value == script.Parent.Parent.Parent.Character.Name and age.Value use = false
if c == "Adult" or "Elder" and type == "Modern" and type ~= "Extinct" then local m = game:GetService("InsertService"):LoadAsset(60030650) m.Parent = script.Parent.Parent.Parent.PlayerGui k = m:findFirstChild("true") k.Parent = script.Parent.Parent.Parent.PlayerGui
else if c == "Adult" or "Elder" and type == "Extinct" and type ~= "Modern" then local j = game:GetService("InsertService"):LoadAsset(60079369) j.Parent = script.Parent.Parent.Parent.PlayerGui h = j:findFirstChild("Ex") h.Parent = script.Parent.Parent.Parent.PlayerGui
if c == "Child" then wait(0.0001) k:Remove() local d = game:GetService("InsertService"):LoadAsset(60031049) d.Parent = script.Parent.Parent.Parent.PlayerGui f = d:findFirstChild("false") f.Parent = script.Parent.Parent.Parent.PlayerGui
else if age ~= nil and hit.Parent.Info.Owner.Value ~= script.Parent.Parent.Parent.Character.Name then local t = game:GetService("InsertService"):LoadAsset(60050540) t.Parent = script.Parent.Parent.Parent.PlayerGui g = t:findFirstChild("NO") g.Parent = script.Parent.Parent.Parent.PlayerGui if g ~= nil then k:Remove() end end end wait(0.5) use = true mouse.Icon = "rbxasset://textures\\GunCursor.png" end end end end
function onSelected(mouse) --print("Action Tool Selected") mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end
bin.Selected:connect(onSelected) |
|
|
| Report Abuse |
|
|
misgav11
|
  |
| Joined: 21 Apr 2011 |
| Total Posts: 3418 |
|
| |
|
micol2242
|
  |
| Joined: 13 Nov 2010 |
| Total Posts: 4732 |
|
|
| 23 Aug 2011 02:29 PM |
| "else if" should be "elseif" |
|
|
| Report Abuse |
|
|
misgav11
|
  |
| Joined: 21 Apr 2011 |
| Total Posts: 3418 |
|
| |
|
ShoeBox4
|
  |
| Joined: 06 Apr 2011 |
| Total Posts: 890 |
|
| |
|