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: What's wrong with this script?

Previous Thread :: Next Thread 
Isometricity is not online. Isometricity
Joined: 26 Oct 2011
Total Posts: 438
27 Oct 2013 11:36 AM
Doesn't give off an output.

function onTouched(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
if human ~= nil then
local x = script.Parent.ScreenGui:Clone()
local p = game.Players:GetPlayerFromCharacter(hit.Parent)
if p ~= nil then
x.Parent = p.PlayerGui
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Parent = game.Debris
end
end
end
Report Abuse
Isometricity is not online. Isometricity
Joined: 26 Oct 2011
Total Posts: 438
27 Oct 2013 11:51 AM
Bump...
Report Abuse
Isometricity is not online. Isometricity
Joined: 26 Oct 2011
Total Posts: 438
27 Oct 2013 06:55 PM
Help me?
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
27 Oct 2013 07:03 PM
Too many waits. Use generic for.
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
27 Oct 2013 07:08 PM
function onTouched(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
if human ~= nil then
local x = script.Parent.ScreenGui:Clone()
local p = game.Players:GetPlayerFromCharacter(hit.Parent)
if p ~= nil then
x.Parent = p.PlayerGui
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Frame.Visible = false
wait(0.25)
x.Frame.Visible = true
wait(0.25)
x.Parent = game.Debris
end
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
Ludici is not online. Ludici
Joined: 22 Jul 2013
Total Posts: 640
27 Oct 2013 07:12 PM
No connection line. And use :clone() not :Clone()
Hope this helps.

~ Make the simple, amazing ~
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