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: Script/Value changer that works in-game?

Previous Thread :: Next Thread 
Lordofsmartness is not online. Lordofsmartness
Joined: 28 Oct 2011
Total Posts: 364
23 Dec 2014 12:19 AM
I depend on my admin to do that, but it can't do it anymore for some reason... so is there any GUI's or in-game scripts that changes certain values?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
23 Dec 2014 12:20 AM
yes
Report Abuse
Lordofsmartness is not online. Lordofsmartness
Joined: 28 Oct 2011
Total Posts: 364
23 Dec 2014 12:39 AM
Is there any known admin scripts that can change values? I tried doing this with kohl's admin but it didn't work.
Report Abuse
Lordofsmartness is not online. Lordofsmartness
Joined: 28 Oct 2011
Total Posts: 364
23 Dec 2014 02:12 AM
Bump
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
23 Dec 2014 02:16 AM
Well the script would have to be made to work with your place
Report Abuse
Lordofsmartness is not online. Lordofsmartness
Joined: 28 Oct 2011
Total Posts: 364
23 Dec 2014 02:25 AM
Alright, can you give me an example of one? I really don't know what to work with here.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
23 Dec 2014 02:26 AM
Well what kinda values are you looking to change
Report Abuse
Lordofsmartness is not online. Lordofsmartness
Joined: 28 Oct 2011
Total Posts: 364
23 Dec 2014 04:56 AM
IntValues and BoolValues.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
23 Dec 2014 05:21 PM
Yah that would be easy, where do you have the values?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
23 Dec 2014 09:27 PM
I took an output gui I had and edited it, its kinda thrown together and only works with bool values in workspace (Or in things in workspace, and so on) but its kinda an example

http://www.roblox.com/bool-explorer-item?id=195993225
Report Abuse
Lordofsmartness is not online. Lordofsmartness
Joined: 28 Oct 2011
Total Posts: 364
24 Dec 2014 12:21 AM
They are actually in the player... but I can figure something out, thanks for giving me the example... it's because I heard that certain scripts don't work in-game all though they work in studio... so that's why I wanted this to make sure all my scripts work in the game.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
24 Dec 2014 12:46 AM
Swap the script in the gui with this, it'll work with bools in players or workspace
still not numbers because I was too lazy


local function connectBool(b)
local newLine = script.boolLine:Clone()
newLine.Position = UDim2.new(0, 25, 0, (#script.Parent.scroll:getChildren() * 20) + 5)
newLine.Size = UDim2.new(0, (#b:GetFullName() * 10), 0, 15)
newLine.Parent = script.Parent.scroll
newLine.Text = b:GetFullName()
newLine.toggle.Text = (b.Value and "X" or "")
b.Changed:connect(function(v)
newLine.toggle.Text = (v and "X" or "")
end)
newLine.toggle.MouseButton1Click:connect(function()
b.Value = not b.Value
end)
end

local function check(o)
if o:IsA("BoolValue") then
connectBool(o)
end
for _, object in next, o:GetChildren() do
check(object)
end
end

game.Players.DescendantAdded:connect(function(child)
check(child)
end)

workspace.DescendantAdded:connect(function(child)
check(child)
end)

check(game.Players)
check(workspace)
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
24 Dec 2014 12:48 AM
Actually do this instead


local function connectBool(b)
local newLine = script.boolLine:Clone()
newLine.Position = UDim2.new(0, 25, 0, (#script.Parent.scroll:getChildren() * 20) + 5)
newLine.Size = UDim2.new(0, (#b:GetFullName() * 10), 0, 15)
newLine.Parent = script.Parent.scroll
newLine.Text = b:GetFullName()
newLine.toggle.Text = (b.Value and "X" or "")
b.Changed:connect(function(v)
newLine.toggle.Text = (v and "X" or "")
end)
newLine.toggle.MouseButton1Click:connect(function()
b.Value = not b.Value
end)
end

local function check(o)
if o:IsA("BoolValue") then
connectBool(o)
end
for _, object in next, o:GetChildren() do
check(object)
end
end
for _, service in next, {game.Players; workspace; game.ServerScriptService; game.ServerStorage; game.ReplicatedStorage} do
service.DescendantAdded:connect(function(child)
check(child)
end)
check(service)
end
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