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: why doesn't this script work anymore?

Previous Thread :: Next Thread 
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
14 Dec 2011 11:37 PM
So what happens what you create a message script and place it in a brick it works and not touch it for a month. Then a month goes by you try it out again and it doesn't work. Tell me that. Anyway here's the script:

local enabled = true
script.Parent.Touched:connect(function(hit)
if enabled == false then return end
enabled = false
h = hit.Parent:FindFirstChild("Humanoid")
local plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plyr and h then
local g = Instance.new("ScreenGui",plyr.PlayerGui)
g.Name = "MessageGui"
local t = Instance.new("TextLabel",g)
t.Name = "TEXT"
t.BackgroundTransparency = 0.2
t.BorderSizePixel = 0
t.Size = UDim2.new(.25,0,.25,0)
t.Position = UDim2.new(.1,0,.1,0)
t.BackgroundColor3 = Color3.new("Really black")
t.TextColor3 = Color3.new(51,0,0)
t.FontSize = "Size12"
t.Text = "Welcome to some dark cave
wait(4)
t.Text = "Your first task
wait(4)
t.Text = "try to find your way out of it"
wait(4)
t.Text = "Be sure to avoid the things that can kill you"
wait(4)
t.Text = "But be sure to collect the things that can help you"
wait(4)
t.Text = "This has been a warning"
wait(4)
enabled = true
g:Remove()
end end)

So you put it in a birck and it inserts a GUI in the corner of the screen. So tell me why in the world does it suddenly not work? Is there a script I can put in the game that will fix all my message scripts that don't work (yes all of them don't work) Does anyone know what's going on?
Report Abuse
kingmod123 is not online. kingmod123
Joined: 16 May 2009
Total Posts: 699
14 Dec 2011 11:54 PM
tl;dr

~What you think is wrong~
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
15 Dec 2011 12:05 AM
what?
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
15 Dec 2011 08:32 PM
well what does that mean?
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
16 Dec 2011 12:12 AM
come on someone just tell me
Report Abuse
SirSpence99 is not online. SirSpence99
Joined: 08 Nov 2008
Total Posts: 302
16 Dec 2011 04:26 AM
Probably an update to ROBLOX broke it.
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
16 Dec 2011 06:51 PM
what i'm asking is how do I fix it?
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
16 Dec 2011 11:05 PM
come on anyone. Please someone must know how to fix it
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
16 Dec 2011 11:07 PM
tl;dr = too long; didn't read
AKA i have the attention span of a 3 year old.

ROBLOX often breaks some scripts with updates.
Try to redo it.
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
17 Dec 2011 12:21 AM
ok so how do I redo it? Just copy the things inside the script and then delete it then paste it back in? And do I have to do this everytime roblox updates or is there a script that can fix it everytime?
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
17 Dec 2011 12:28 AM
try putting 'if enabled == false then' to 'if (enabled == false) then '
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
17 Dec 2011 12:29 AM
do not call a local on a instance create.
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
17 Dec 2011 12:32 AM
what does "do not call a local on a instance create" mean?
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
18 Dec 2011 01:19 AM
changing 'if enabled == false then' to 'if (enabled == false) then' doesn't work. any other suggestions
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
18 Dec 2011 07:22 PM
Like I said. This stupid roblox update broke the script so is there a way I can reset it so it can work again?
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
20 Dec 2011 04:00 AM
still not working
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
20 Dec 2011 03:09 PM
well anyone?
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
21 Dec 2011 02:31 AM
this is not working no matter what I do can someone please help me
Report Abuse
stuart6854 is not online. stuart6854
Joined: 20 Oct 2008
Total Posts: 913
21 Dec 2011 02:49 AM
    t.Text = "Welcome to some dark cave
    wait(4)
    t.Text = "Your first task

**change too:**

    t.Text = "Welcome to some dark cave"
    wait(4)
    t.Text = "Your first task"
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
21 Dec 2011 03:13 AM
that's not the problem it was just copied wrong
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
22 Dec 2011 05:00 PM
comeon I just want to know
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
22 Dec 2011 06:58 PM
please this is starting to annoy me and I just want it to be fixed
Report Abuse
352ynnhoj is not online. 352ynnhoj
Joined: 21 Sep 2010
Total Posts: 1054
22 Dec 2011 07:00 PM
Roblox removed a few scripting commands so it is broken
Report Abuse
352ynnhoj is not online. 352ynnhoj
Joined: 21 Sep 2010
Total Posts: 1054
22 Dec 2011 07:01 PM
Try using a true function and connection
function name()

script.Parent.Touched:Connect(name)

commands like above
Report Abuse
codylO is not online. codylO
Joined: 24 Apr 2010
Total Posts: 439
24 Dec 2011 05:52 PM
I'm still trying to get it to work using those commands but it's still not working. Maybe I'm not using them right. Can someone put those in my script.
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