|
| 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 |
|
|
|
| 19 Jul 2011 09:42 AM |
| "What's wrong?" You copied it, that's what. |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2011 09:42 AM |
Jelly much stalking me? Really? Report for harassment? |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2011 09:43 AM |
I'm helping users on SH right now.
wiki.roblox.com |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 02 May 2008 |
| Total Posts: 1977 |
|
| |
|
|
| 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 |
|
|
|
| 19 Jul 2011 09:47 AM |
| To late idiot... your all way's to late. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 02 May 2008 |
| Total Posts: 1977 |
|
|
| 19 Jul 2011 09:49 AM |
| does the script @top work or not :P |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 19 Jul 2011 09:56 AM |
| If it is not in a LocalScript |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 19 Jul 2011 10:06 AM |
jaredvaldez2 copies all games HE IS NOT A GENIUS like DANEDUDE37 ETC |
|
|
| Report Abuse |
|
|