|
| 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 |
|
|
|
| 12 Jan 2012 06:45 PM |
I just skimmed, but citizens.MouseButtosn1Down:connect(function() is misspelled; there could be more errors. |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2012 06:46 PM |
| I am also sure you defined everthing, such as citizens and such, correct? |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2012 06:46 PM |
| Yeah I forgot to include it in this thread. Thanks! |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2012 06:47 PM |
| Did it solve your problem? If so then your welcome. :] |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 12 Jan 2012 06:54 PM |
| Oops 'teams = script.Parent.teams' I should make that into 'teams = script.Parent.Teams' |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2012 06:54 PM |
| But it still doesn't work :? |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2012 06:56 PM |
| Did you define text1, text2, etc.? And no output? |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 12 Jan 2012 07:06 PM |
| You need to make the team like the script |
|
|
| Report Abuse |
|
|
|
| 12 Jan 2012 07:10 PM |
| I made the teams. They are under 'Teams' in the Explorer. |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
| |
|
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 |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|
| |
|
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
|
  |
| 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 |
|
|