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: Will this work?

Previous Thread :: Next Thread 
jaredvaldez2 is not online. jaredvaldez2
Joined: 01 Apr 2008
Total Posts: 658
19 Jul 2011 09:40 AM
local debounce = false

function onHit(hit)
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil) and debounce == false then

debounce = true

local player.StarterGui.SceneGui.Opening.Text = "Question : What's 5+5=?"
wait(5)

debounce = false
end
end

script.Parent.Touched:connect(onHit)

What's wrong?
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
19 Jul 2011 09:42 AM
"What's wrong?" You copied it, that's what.
Report Abuse
jaredvaldez2 is not online. jaredvaldez2
Joined: 01 Apr 2008
Total Posts: 658
19 Jul 2011 09:42 AM
Jelly much stalking me?
Really? Report for harassment?
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
19 Jul 2011 09:43 AM
I'm helping users on SH right now.

wiki.roblox.com
Report Abuse
LX7 is not online. LX7
Joined: 19 Apr 2011
Total Posts: 1533
19 Jul 2011 09:43 AM
db = false

function onHit(hit)
if hit.Parent:findFirstChild("Humanoid") ~= nil) and not db then

db = true

player = game.Players:getPlayerFromCharacter(hit.Parent)
player.PlayerGui.SceneGui.Opening.Text = "Question : What's 5+5=?"
wait(5)

db = false
end
end

script.Parent.Touched:connect(onHit)


Ya got me banned but whatever.
Report Abuse
jaredvaldez2 is not online. jaredvaldez2
Joined: 01 Apr 2008
Total Posts: 658
19 Jul 2011 09:44 AM
And saying you made mini - game's "ice128" Would never say things you told me let alone stalk me into everything i do... Com-on you just wanted credit narb. get lost you attention hoarder.
Report Abuse
alexmach1 is not online. alexmach1
Joined: 02 May 2008
Total Posts: 1977
19 Jul 2011 09:44 AM
output :P
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
19 Jul 2011 09:46 AM
Try this:


d = true

function onHit(hit)
if not d then return end
d = false
local human = hit.Parent:findFirstChild("Humanoid")
if (human == nil) then d = true creturn end

local player.StarterGui.SceneGui.Opening.Text = "Question : What's 5+5=?"
wait(5)

debounce = true
end
end

script.Parent.Touched:connect(onHit)
Report Abuse
jaredvaldez2 is not online. jaredvaldez2
Joined: 01 Apr 2008
Total Posts: 658
19 Jul 2011 09:47 AM
To late idiot... your all way's to late.
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
19 Jul 2011 09:47 AM
Whoops, put a C on return


d = true

function onHit(hit)
if not d then return end
d = false
local human = hit.Parent:findFirstChild("Humanoid")
if (human == nil) then d = true return end

local player.StarterGui.SceneGui.Opening.Text = "Question : What's 5+5=?"
wait(5)

debounce = true
end

script.Parent.Touched:connect(onHit)
Report Abuse
LX7 is not online. LX7
Joined: 19 Apr 2011
Total Posts: 1533
19 Jul 2011 09:48 AM
Me? The only problem was the local player thing, that was incorrect. You needed to get the player first.
Report Abuse
alexmach1 is not online. alexmach1
Joined: 02 May 2008
Total Posts: 1977
19 Jul 2011 09:49 AM
does the script @top work or not :P
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
19 Jul 2011 09:51 AM
It's hard to understand why he calls me and idiot when I fix his scripts for him.


d = true

script.Parent.Touched:connect(function(hit)
if not d then return end
d = false
local human = hit.Parent:FindFirstChild("Humanoid")
if (human == nil) then d = true return end

LocalPlayer.StarterGui.SceneGui.Opening.Text = "Question : What's 5+5=?"
wait(5)

d = true
end)

Report Abuse
LX7 is not online. LX7
Joined: 19 Apr 2011
Total Posts: 1533
19 Jul 2011 09:51 AM
@MS64
Your's would fail, it's mroe efficent but would fail.
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
19 Jul 2011 09:56 AM
If it is not in a LocalScript
Report Abuse
LX7 is not online. LX7
Joined: 19 Apr 2011
Total Posts: 1533
19 Jul 2011 10:02 AM
But the script has t be in a local area for it to get the local player. HA
Report Abuse
MARIOSTAR6464 is not online. MARIOSTAR6464
Joined: 21 Jul 2008
Total Posts: 13674
19 Jul 2011 10:04 AM
Oh, thought it was a Gui script, all you need if to

kid = game.Players:GetPlayerFromCharacter(hit.Parent)

and then find the path to the Gui.
Report Abuse
THEREALSLIMSHADY00 is not online. THEREALSLIMSHADY00
Joined: 05 Jun 2011
Total Posts: 92
19 Jul 2011 10:06 AM

jaredvaldez2 copies all games HE IS NOT A GENIUS like DANEDUDE37 ETC
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