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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

GUI script: help please

Previous Thread :: Next Thread 
Cookaie is not online. Cookaie
Joined: 04 Oct 2012
Total Posts: 2306
09 Jul 2014 11:04 AM
The following script works, but only when you join. After you respawn, the script does not run and the GUI does not appear. If anyone could give me advice on how to fix this, it'd be massively appreciated. The following script is here:

function added(player)
wait(10)
local f = Instance.new("TextButton")
local s = Instance.new("ScreenGui")
f.Text = "To MORPHS"
f.Parent = s
s.Parent = player.PlayerGui
f.Position = UDim2.new(0, 0, 0.3, 0)
f.Size = UDim2.new(0.1, 0, 0.1, 0)

f.MouseButton1Down:connect(function()
player.Character.Torso.CFrame = CFrame.new(Vector3.new(732.104, -105.352, 341.96))
end)

local a = Instance.new("TextButton")
local b = Instance.new("ScreenGui")
a.Text = "To CAFETERIA"
a.Parent = b
b.Parent = player.PlayerGui
a.Position = UDim2.new(0, 0, 0.4, 0)
a.Size = UDim2.new(0.1, 0, 0.1, 0)

a.MouseButton1Down:connect(function()
player.Character.Torso.CFrame = CFrame.new(Vector3.new(90.904, 135.194, 448.992))
end)
local c = Instance.new("TextButton")
local d = Instance.new("ScreenGui")
c.Text = "To LIGHT/HEAVY CROSS SECTION"
c.Parent = b
d.Parent = player.PlayerGui
c.Position = UDim2.new(0, 0, 0.5, 0)
c.Size = UDim2.new(0.1, 0, 0.1, 0)

a.MouseButton1Down:connect(function()
player.Character.Torso.CFrame = CFrame.new(Vector3.new(-122.3, 1.9, 237.8))



end)
end
game.Players.PlayerAdded:connect(added)


super mayn to de rescuies
Report Abuse
Cookaie is not online. Cookaie
Joined: 04 Oct 2012
Total Posts: 2306
09 Jul 2014 04:17 PM
bumphs9JZ


super mayn to de rescuies
Report Abuse
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
09 Jul 2014 04:44 PM
function added(player)
wait(10)
local f = Instance.new("TextButton")
local s = Instance.new("ScreenGui")
f.Text = "To MORPHS"
f.Parent = s
s.Parent = player.PlayerGui
f.Position = UDim2.new(0, 0, 0.3, 0)
f.Size = UDim2.new(0.1, 0, 0.1, 0)

f.MouseButton1Down:connect(function()
player.Character.Torso.CFrame = CFrame.new(Vector3.new(732.104, -105.352, 341.96))
end)

local a = Instance.new("TextButton")
local b = Instance.new("ScreenGui")
a.Text = "To CAFETERIA"
a.Parent = b
b.Parent = player.PlayerGui
a.Position = UDim2.new(0, 0, 0.4, 0)
a.Size = UDim2.new(0.1, 0, 0.1, 0)

a.MouseButton1Down:connect(function()
player.Character.Torso.CFrame = CFrame.new(Vector3.new(90.904, 135.194, 448.992))
end)
local c = Instance.new("TextButton")
local d = Instance.new("ScreenGui")
c.Text = "To LIGHT/HEAVY CROSS SECTION"
c.Parent = b
d.Parent = player.PlayerGui
c.Position = UDim2.new(0, 0, 0.5, 0)
c.Size = UDim2.new(0.1, 0, 0.1, 0)

a.MouseButton1Down:connect(function()
player.Character.Torso.CFrame = CFrame.new(Vector3.new(-122.3, 1.9, 237.8))



end)
end
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function()
added(player)
end)
end)
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