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 » Scripting Helpers
Home Search
 

Re: my script always breaks ._.

Previous Thread :: Next Thread 
misgav11 is not online. 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 is not online. misgav11
Joined: 21 Apr 2011
Total Posts: 3418
23 Aug 2011 01:58 PM
some one? :'(
Report Abuse
micol2242 is not online. micol2242
Joined: 13 Nov 2010
Total Posts: 4732
23 Aug 2011 02:29 PM
"else if" should be "elseif"
Report Abuse
misgav11 is not online. misgav11
Joined: 21 Apr 2011
Total Posts: 3418
23 Aug 2011 02:33 PM
yay worked! :D
Report Abuse
ShoeBox4 is not online. ShoeBox4
Joined: 06 Apr 2011
Total Posts: 890
23 Aug 2011 02:34 PM
Lawl
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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