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
 

Will pay @100 R$ for this script to work!

Previous Thread :: Next Thread 
BookOfPowerz is not online. BookOfPowerz
Joined: 16 Dec 2013
Total Posts: 1082
19 Jun 2017 11:25 AM
Works completely fine in Studio. In game, it says that 'Stats' is not a valid member of 'PlayerGui'. I tried using :WaitForChild() and :FindFirstChild() to but it still did not work.

Script:
script.Quirky_3.OnServerEvent:connect(function(Player)
Player.Quirk.Quirk_Limit.Value = 0
if Player.Quirk.Value == "Half Cold, Half Hot" then
for i,v in pairs (Player.Backpack.Quirks:GetChildren()) do
v.Disabled = false
end
for i,v in pairs (Player.PlayerGui.Stats:GetChildren()) do
if v.Name == "Training" then
v.Disabled = false
end
end
for i,v in pairs (Player.PlayerGui.Stats:GetChildren()) do
if v.Name == "MobileControls" then
v.Disabled = false
end
end
Player.Character.Humanoid.WalkSpeed = math.floor(16 + Player.Attributes.Agility.Value / 5)
end
if Player.Quirk.Value == "Explosion" then
for i,v in pairs (Player.Backpack.Quirks:GetChildren()) do
v.Disabled = false
end
for i,v in pairs (Player.PlayerGui.Stats:GetChildren()) do
if v.Name == "Training" then
v.Disabled = false
end
end
for i,v in pairs (Player.PlayerGui.Stats:GetChildren()) do
if v.Name == "MobileControls" then
v.Disabled = false
end
end
end
end)



#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel
Report Abuse
BookOfPowerz is not online. BookOfPowerz
Joined: 16 Dec 2013
Total Posts: 1082
19 Jun 2017 11:33 AM
b1


#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel
Report Abuse
archisaurus is online. archisaurus
Joined: 07 Apr 2013
Total Posts: 403
19 Jun 2017 11:34 AM
it's in the playergui so it's on their client and you're trying to access that, not sure if im wrong


Report Abuse
BookOfPowerz is not online. BookOfPowerz
Joined: 16 Dec 2013
Total Posts: 1082
19 Jun 2017 11:36 AM
So how could I access it?


#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel
Report Abuse
kojocrash is not online. kojocrash
Joined: 07 Sep 2013
Total Posts: 277
19 Jun 2017 11:36 AM
1. Did you create the stats folder with a server script
2. Did you put :WaitForChild() for all the places it says stats
3. Is stats spelled correctly
Report Abuse
kojocrash is not online. kojocrash
Joined: 07 Sep 2013
Total Posts: 277
19 Jun 2017 11:37 AM
Put it in starterplayer then point your scripts to that
Report Abuse
BookOfPowerz is not online. BookOfPowerz
Joined: 16 Dec 2013
Total Posts: 1082
19 Jun 2017 11:38 AM
Stats is a GUI. It's already in the StarterGui by default, yes its spelt correctly and i did put :WaitForChild() everywhere


#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel
Report Abuse
archisaurus is online. archisaurus
Joined: 07 Apr 2013
Total Posts: 403
19 Jun 2017 11:38 AM
well if the values were changed on the client then it wouldnt be seen on the server if your games is fe


Report Abuse
BookOfPowerz is not online. BookOfPowerz
Joined: 16 Dec 2013
Total Posts: 1082
19 Jun 2017 11:39 AM
I'll pay you @100 R$ if you could help me so that it can access the 'Stats' GUI


#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel
Report Abuse
kojocrash is not online. kojocrash
Joined: 07 Sep 2013
Total Posts: 277
19 Jun 2017 11:41 AM
Usually I'd make a script so its way easier:

game.Players.PlayerAdded:connect(function(plr)
local Stats = Instance.new("Folder",plr)
local Stats.Name = "Stats"
end)
Report Abuse
BookOfPowerz is not online. BookOfPowerz
Joined: 16 Dec 2013
Total Posts: 1082
19 Jun 2017 11:41 AM
yeah but 'Stats' is a GUI...not a folder?


#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel
Report Abuse
archisaurus is online. archisaurus
Joined: 07 Apr 2013
Total Posts: 403
19 Jun 2017 11:42 AM
is your game fe?


Report Abuse
kojocrash is not online. kojocrash
Joined: 07 Sep 2013
Total Posts: 277
19 Jun 2017 11:45 AM
Im on my phone so I cant type but you can send arguments from the local script thats fires it. The local script can access gui. Example:

--In local script
game.Workspace.RemoteEvent:FireServer(put the stats value)
--In RemoteEvent
script.Parent.OnServerEvent:connect(function(player,stats1,stats_ect)
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