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: None of my scripts are working?

Previous Thread :: Next Thread 
1234Christopher is not online. 1234Christopher
Joined: 21 Oct 2008
Total Posts: 1715
14 Nov 2012 04:04 PM
I am writing them all without any spelling mistakes or errors in the output.
Yet, my scripts work in edit when I play them.
But when I'm in play none of the scripts work? Is this a bug?
Report Abuse
1234Christopher is not online. 1234Christopher
Joined: 21 Oct 2008
Total Posts: 1715
14 Nov 2012 04:07 PM
The scripts used to have a 'while true do' loop but that wasn't working so I changed it to a simple onTouched function and it still isn't working? Has anyone else experienced this bug and fixed it?
Report Abuse
michaelaqz4 is not online. michaelaqz4
Joined: 23 Sep 2009
Total Posts: 1940
14 Nov 2012 04:13 PM
Show me the script.
Report Abuse
Solotaire is not online. Solotaire
Joined: 30 Jul 2009
Total Posts: 30356
14 Nov 2012 04:45 PM
Are you placing the code inside of LocalScripts?
Report Abuse
1234Christopher is not online. 1234Christopher
Joined: 21 Oct 2008
Total Posts: 1715
16 Nov 2012 03:42 PM
This was the code, but I am made a new one with a different way of working. If you would like to see the other one please reply.

--Made by 1234Christopher
while wait() do
local screen, image = Instance.new('ScreenGui'), Instance.new('ImageLabel')

screen.Parent = game.StarterGui
image.Parent = screen

image.Position = UDim2.new(0, 0, 0, 0)
image.Size = UDim2.new(1, 0, 1, 0)
image.Image = 'http://www.roblox.com/asset/?id=97757376'
wait(3)
image.Image = 'http://www.roblox.com/asset/?id=80143900'
wait(3)
image.Image = 'http://www.roblox.com/asset/?id=86126111'
wait(3)
image.Image = 'http://www.roblox.com/asset/?id=79146405'
wait(3)
image.Image = 'http://www.roblox.com/asset/?id=45120559'
wait(3)
image:Destroy()
local players = game.Players:getChildren()
players:BreakJoints()
end


Report Abuse
1234Christopher is not online. 1234Christopher
Joined: 21 Oct 2008
Total Posts: 1715
16 Nov 2012 03:50 PM
And this is my newer, longer script where theres loads of code that could be shortened. I did have imagea to e in the workspace. And it works but gets stuck on the first image... And I got rid of the tabs to make it look cleaner in forum.

--Made by 1234Christopher

local screen = Instance.new('ScreenGui')
screen.Parent = game.StarterGui

game.Players.PlayerAdded:connect(function(player)
local images = game.Workspace:GetChildren("Imagea", "Imageb", "Imagec", "Imaged", "Imagee")

local imagea = game.Workspace:FindFirstChild("Imagea")
imagea.Parent = game.StarterGui.ScreenGui
imagea.Position = UDim2.new(0, 0, 0, 0)
imagea.Size = UDim2.new(1, 0, 1, 0)
wait(3)
imagea.Parent = game.Workspace

local imageb = game.Workspace:FindFirstChild("Imageb")
imageb.Parent = game.StarterGui.ScreenGui
imageb.Position = UDim2.new(0, 0, 0, 0)
imageb.Size = UDim2.new(1, 0, 1, 0)
wait(3)
imageb.Parent = game.Workspace

local imagec = game.Workspace:FindFirstChild("Imagec")
imagec.Parent = game.StarterGui.ScreenGui
imagec.Position = UDim2.new(0, 0, 0, 0)
imagec.Size = UDim2.new(1, 0, 1, 0)
wait(3)
imagec.Parent = game.Workspace

local imaged = game.Workspace:FindFirstChild("Imaged")
imaged.Parent = game.StarterGui.ScreenGui
imaged.Position = UDim2.new(0, 0, 0, 0)
imaged.Size = UDim2.new(1, 0, 1, 0)
wait(3)
imaged.Parent = game.Workspace

local imagee = game.Workspace:FindFirstChild("Imagee")
imagee.Parent = game.StarterGui.ScreenGui
imagee.Position = UDim2.new(0, 0, 0, 0)
imagee.Size = UDim2.new(1, 0, 1, 0)
wait(3)
imagee.Parent = game.Workspace

game.StarterGui.ScreenGui:Destroy()
local human = player.Parent:FindFirstChild("Humanoid")
if (human ~= nil) then
human.Health = 0
end
end)
Report Abuse
1234Christopher is not online. 1234Christopher
Joined: 21 Oct 2008
Total Posts: 1715
16 Nov 2012 03:53 PM
And nope, not placing the codes in localscripts although I did try that with no luck...
Some times it says 'attempt a nil value' I think. I looked it up and I think there was a typo in my function so I fixed that. But the script is still not working so i'm guessing that the statments are false or something.
Report Abuse
Alexrocksdude is not online. Alexrocksdude
Joined: 19 Jan 2011
Total Posts: 3828
16 Nov 2012 03:56 PM
This needed an f5 bomb?

alexrocksdude #robloxranks
Report Abuse
pighead10 is not online. pighead10
Joined: 03 May 2009
Total Posts: 10341
17 Nov 2012 03:03 AM
Are you sure you want to put them in StarterGui? Player's only see what's in their PlayerGui - when they respawn, everything from StarterGui is copied into their PlayerGui. You can see GUIs in StarterGui in edit mode, which is probably why you think it is working.
Report Abuse
Alexrocksdude is not online. Alexrocksdude
Joined: 19 Jan 2011
Total Posts: 3828
17 Nov 2012 03:30 AM
Pighead! :D

alexrocksdude #robloxranks
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