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: Whats wrong with this?

Previous Thread :: Next Thread 
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
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
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
22 Sep 2011 06:40 PM
connection line....


script.Parent.MouseButton1Click:connect(onClick)

change it to that
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
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
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
22 Sep 2011 06:51 PM
It's still not working XD can someone plz help me?
Report Abuse
PompeyTheGreat is not online. PompeyTheGreat
Joined: 10 Apr 2011
Total Posts: 5615
22 Sep 2011 06:51 PM
Add another end before connection line
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
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
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
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
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