|
| 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 |
|
|
|
| 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 |
|
|
| |
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
|
| 14 Nov 2012 04:45 PM |
| Are you placing the code inside of LocalScripts? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 16 Nov 2012 03:56 PM |
This needed an f5 bomb?
alexrocksdude #robloxranks |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 17 Nov 2012 03:30 AM |
Pighead! :D
alexrocksdude #robloxranks |
|
|
| Report Abuse |
|
|