|
| 22 Sep 2011 06:36 PM |
This is a text button script btw.
function onButton1Down(hit) g = game.Workspace.GSyth h = game.Workspace.GHead local m = game.Workspace.Message if game.Workspace.PlayerGUI.FightGUI.FightSequence.Clicked == 5 then m.Text = "I De Headed you how are you still alive D:." wait(0.1) hit.Parent.Head.Transparency = 0 m.Text = "Player:Imma get you naooo (stabs Reaper in stomack)" g.CFrame = CFrame.new(6.4, 16.4, 19.5) t = h.new("Fire") t.Heat = 25 t.Size = 30 wait(3) b = h.new("Explosion") b.BlastPressure = 5.0000e+005 b.BlasRadius = 4 m.Text = "Hmm you passed only 1 of 5 tests Ceep going." end
script.Parent.Clicked:connect(onClick)
|
|
|
| Report Abuse |
|
|
|
| 22 Sep 2011 06:40 PM |
connection line....
script.Parent.MouseButton1Click:connect(onClick)
change it to that |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2011 06:43 PM |
It still didn't work heres the output.
Players.joshrocks101.PlayerGui.FightGUI.Frame1.FightSequence.Script:29: 'end' expected (to close 'function' at line 1) near |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2011 06:51 PM |
| It's still not working XD can someone plz help me? |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2011 06:51 PM |
| Add another end before connection line |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2011 06:55 PM |
| This is my first time making a Gui.What would i add to make it to were i can actualy click it? cuz that says it's running but it won't let me click it sadly. |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2011 07:03 PM |
Itried doing this and it still won't let me click it why?
print("Gui Closer Located and initiated.")
button = script.Parent window = script.Parent.Parent.Parent
function onClicked(GUI) g = game.Workspace.GSyth h = game.Workspace.GHead local m = game.Workspace.Message if game.Workspace.PlayerGUI.FightGUI.FightSequence.Clicked == 5 then m.Text = "I De Headed you how are you still alive D:." wait(0.1) hit.Parent.Head.Transparency = 0 m.Text = "Player:Imma get you naooo (stabs Reaper in stomack)" g.CFrame = CFrame.new(6.4, 16.4, 19.5) t = h.new("Fire") t.Heat = 25 t.Size = 30 wait(3) b = h.new("Explosion") b.BlastPressure = 5.0000e+005 b.BlasRadius = 4 m.Text = "Hmm you passed only 1 of 5 tests Ceep going." end end
script.Parent.MouseButton1Click:connect(onClick)
|
|
|
| Report Abuse |
|
|