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 » Scripters
Home Search
 

Re: Problems encountered...

Previous Thread :: Next Thread 
Lecturous is not online. Lecturous
Joined: 17 Aug 2013
Total Posts: 1096
31 Jan 2015 07:16 PM
Well, my Battle Blocks game was horrible given the reviews from my friends. Looks like I need to update it. Now, first I am editing the class screen. What does this have to do with the problem? THIS IS THE PROBLEM.

I want to make it so that whenever a player spawns or dies, they can select their class again. Problem is, I don't know how to do this. Sure, I can DELETE the class GUI once the player selects the class, but then what? Any ideas?

Here is the script I am using (server script, parent is a class GUI button):
local c = script.Parent
local plr = script.Parent.Parent.Parent.Parent.Parent.Parent
local text = script.Parent.Parent.Parent.Description.Text
local q = "No class selected."
local wep = game.ServerStorage.Weapons.Scout

c.MouseEnter:connect(function()
text.Text = [[
"The Scout is a great class for beginners that has regular health and walkspeed. Don't expect TOO much from this class, it is for beginners."
]]
end)

c.MouseLeave:connect(function()
text.Text = q
end)

c.MouseButton1Down:connect(function()
local class = plr:FindFirstChild('Class')
if class then
class.Value = "Scout"
for i, v in pairs(wep:GetChildren()) do
v.Parent = plr.Backpack
script.Parent.Parent.Parent.Visible = false
end
end
end)

HeavyBomber1 / Lecturous - Developer and Player
Report Abuse
Lecturous is not online. Lecturous
Joined: 17 Aug 2013
Total Posts: 1096
31 Jan 2015 07:43 PM
Bump.

HeavyBomber1 / Lecturous - Developer and Player
Report Abuse
Lecturous is not online. Lecturous
Joined: 17 Aug 2013
Total Posts: 1096
31 Jan 2015 08:20 PM
I know someone is at LEAST going to help me. Please.

HeavyBomber1 / Lecturous - Developer and Player
Report Abuse
Lecturous is not online. Lecturous
Joined: 17 Aug 2013
Total Posts: 1096
31 Jan 2015 09:00 PM
Why is NO ONE helping me?

HeavyBomber1 / Lecturous - Developer and Player
Report Abuse
Lecturous is not online. Lecturous
Joined: 17 Aug 2013
Total Posts: 1096
31 Jan 2015 09:17 PM
Ugh.... this is agitating...

HeavyBomber1 / Lecturous - Developer and Player
Report Abuse
Lecturous is not online. Lecturous
Joined: 17 Aug 2013
Total Posts: 1096
31 Jan 2015 09:38 PM
bump.....................

HeavyBomber1 / Lecturous - Developer and Player
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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