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: GUI Team Script Help

Previous Thread :: Next Thread 
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
12 Jan 2012 06:44 PM
game.Players.PlayerAdded:connect(function(p)
team:TweenPosition(UDim2.new(0.5,-300,0.5,-100), Out, "Back", 1, false)
citizens.MouseButtosn1Down:connect(function()
p.TeamColor = BrickColor.new("Bright red")
team:TweenPosition(UDim2.new(0.5,-300,0.5,-600), Out, "Back", 1, false)
p.Humanoid.Health = 0
end)
police.MouseButton1Down:connect(function()
p.TeamColor = BrickColor.new("Bright blue")
team:TweenPosition(UDim2.new(0.5,-300,0.5,-600), Out, "Back", 1, false)
p.Humanoid.Health = 0
end)
end)
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
12 Jan 2012 06:45 PM
I just skimmed, but
citizens.MouseButtosn1Down:connect(function()
is misspelled; there could be more errors.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
12 Jan 2012 06:46 PM
I am also sure you defined everthing, such as citizens and such, correct?
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
12 Jan 2012 06:46 PM
Yeah I forgot to include it in this thread. Thanks!
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
12 Jan 2012 06:47 PM
Did it solve your problem? If so then your welcome. :]
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
12 Jan 2012 06:48 PM
The script still doesn't work :/

Here's the WHOLE script:

game.Players.PlayerAdded:connect(function(p)
frame = script.Parent.Frame
text = frame.text
teams = script.Parent.teams
citizens = teams.Citizens
police = teams.Police
blackscreen = script.Parent.BlackScreen
text1 = "Welcome To Grand Theft ROBLOX! Created by stuntkid257"
text2 = "To start off, go to the parking garage to get a car."
text3 = "Buy a house too, don't worry they are all free!"
text4 = "When you die, you will be teleported to the hospital and in full health!"
text5 = "Go to the red question mark by the Bloxywood sign if you have any questions."
text6 = "I hope you have a fun time playing Grand Theft ROBLOX!"
blackscreen.BackgroundTransparency = 0
wait(5)
for i = 0,1,.1 do
blackscreen.BackgroundTransparency = i
wait(0.1)
end
text.Text = text1
wait(2)
frame:TweenPosition(UDim2.new(0.5,-300,0.5,100), Out, "Back", 1, false)
for i = 1,0,-.1 do
text.TextTransparency = i
wait()
end
wait(5)
for i = 0,1,.1 do
text.TextTransparency = i
wait()
end
text.Text = text2
wait(1)

for i = 1,0,-.1 do
text.TextTransparency = i
wait()
end
wait(5)
for i = 0,1,.1 do
text.TextTransparency = i
wait()
end
text.Text = text3
wait(1)

for i = 1,0,-.1 do
text.TextTransparency = i
wait()
end
wait(5)
for i = 0,1,.1 do
text.TextTransparency = i
wait()
end
text.Text = text4
wait(1)

for i = 1,0,-.1 do
text.TextTransparency = i
wait()
end
wait(5)
for i = 0,1,.1 do
text.TextTransparency = i
wait()
end
text.Text = text5
wait(1)

for i = 1,0,-.1 do
text.TextTransparency = i
wait()
end
wait(5)
for i = 0,1,.1 do
text.TextTransparency = i
wait()
end
text.Text = text6
wait(1)
for i = 1,0,-.1 do
text.TextTransparency = i
wait()
end
wait(5)
for i = 0,1,.1 do
text.TextTransparency = i
wait()
end
frame:TweenPosition(UDim2.new(0.5,-300,0.5,500), Out, "Back", 1, false)
wait(2)
for i = 1,.7,-.1 do
blackscreen.BackgroundTransparency = i
wait()
end
team:TweenPosition(UDim2.new(0.5,-300,0.5,-100), Out, "Back", 1, false)
citizens.MouseButton1Down:connect(function()
p.TeamColor = BrickColor.new("Bright red")
team:TweenPosition(UDim2.new(0.5,-300,0.5,-600), Out, "Back", 1, false)
p.Humanoid.Health = 0
end)
police.MouseButton1Down:connect(function()
p.TeamColor = BrickColor.new("Bright blue")
team:TweenPosition(UDim2.new(0.5,-300,0.5,-600), Out, "Back", 1, false)
p.Humanoid.Health = 0
end)
end)
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
12 Jan 2012 06:52 PM
Again I skimmed. :/ But did you ever define "teams"? I didn't see it, and what does the output say?
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
12 Jan 2012 06:54 PM
Oops 'teams = script.Parent.teams' I should make that into 'teams = script.Parent.Teams'
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
12 Jan 2012 06:54 PM
But it still doesn't work :?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
12 Jan 2012 06:56 PM
Did you define text1, text2, etc.? And no output?
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
12 Jan 2012 06:57 PM
Yeah
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
12 Jan 2012 06:59 PM
Well I don't see where you defined text1, text2, etc. Anyways, I see no clear problem, as I am unfamiliar with tweening. :/
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
12 Jan 2012 07:05 PM
I define the text1, text2, ect. here:

text1 = "Welcome To Grand Theft ROBLOX! Created by stuntkid257"
text2 = "To start off, go to the parking garage to get a car."
text3 = "Buy a house too, don't worry they are all free!"
text4 = "When you die, you will be teleported to the hospital and in full health!"
text5 = "Go to the red question mark by the Bloxywood sign if you have any questions."
text6 = "I hope you have a fun time playing Grand Theft ROBLOX!"
Report Abuse
zombiebradz is not online. zombiebradz
Joined: 29 Jun 2010
Total Posts: 2025
12 Jan 2012 07:06 PM
You need to make the team like the script
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
12 Jan 2012 07:10 PM
I made the teams. They are under 'Teams' in the Explorer.
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
12 Jan 2012 07:19 PM
Any help?
Report Abuse
Ren97 is not online. Ren97
Joined: 24 Oct 2008
Total Posts: 176
12 Jan 2012 07:30 PM
Open the output in the Studio before testing the game. Then test it. If the Output is open, you should see error messages. Please copy them and paste them here.
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
12 Jan 2012 07:46 PM
No output :(
Report Abuse
Ren97 is not online. Ren97
Joined: 24 Oct 2008
Total Posts: 176
12 Jan 2012 07:50 PM
Is the script enabled or disabled? Check in the script properties, it's a checkbox. If the checkbox is activated, the script is disabled.
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
12 Jan 2012 07:54 PM
It's not disabled.
Report Abuse
tiger33333321 is not online. tiger33333321
Joined: 28 Mar 2010
Total Posts: 2115
12 Jan 2012 07:57 PM
copy and paste teleport scripts from free models

and basically
script.Parent.MouseButton1Down:connect(function()
*define how the player gets on bla bla bla team*
Report Abuse
Ren97 is not online. Ren97
Joined: 24 Oct 2008
Total Posts: 176
12 Jan 2012 08:07 PM
dude.

Using free models ain't a solution here. If you're here to say that, why you here?
Report Abuse
assasinassasas is not online. assasinassasas
Joined: 17 Oct 2011
Total Posts: 1
12 Jan 2012 08:12 PM
plz how u get teams
Report Abuse
Ren97 is not online. Ren97
Joined: 24 Oct 2008
Total Posts: 176
12 Jan 2012 08:12 PM
You might want to add a blank line to separate variables (text1 and stuff) from the execution script.
Report Abuse
Ren97 is not online. Ren97
Joined: 24 Oct 2008
Total Posts: 176
12 Jan 2012 08:13 PM
The one who talked about creating teams, please check wiki.roblox.com about Teams.
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