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: Help with simple script please?

Previous Thread :: Next Thread 
JoeRaptor is not online. JoeRaptor
Joined: 08 Sep 2012
Total Posts: 282
03 Apr 2017 10:19 PM
Throw this localscript script inside an IntValue, the IntValue should be inside an ImageLabel.

For some reason, this script has no output error, and does not do as intended....


local dude = script.Parent

local diddly = dude.Parent

if dude.Value == 0 then
diddly.Position = UDim2.new(0,0,0,0)


if dude.Value == 1 then
diddly.Position = UDim2.new(0,-16,0,0)

if dude.Value == 2 then
diddly.Position = UDim2.new(0,-33,0,0)

if dude.Value == 3 then
diddly.Position = UDim2.new(0,-50,0,0)

if dude.Value == 4 then
diddly.Position = UDim2.new(0,-66,0,0)

if dude.Value == 5 then
diddly.Position = UDim2.new(0,-82,0,0)

if dude.Value == 6 then
diddly.Position = UDim2.new(0,-99,0,0)

if dude.Value == 7 then
diddly.Position = UDim2.new(0,-116,0,0)

if dude.Value == 8 then
diddly.Position = UDim2.new(0,-132,0,0)

if dude.Value == 9 then
diddly.Position = UDim2.new(0,-148,0,0)


end
end
end
end
end
end
end
end
end
end
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
03 Apr 2017 10:37 PM
local dude = script.Parent

local diddly = dude.Parent

dude.Changed:Connect(function(value)
if value == 0 then
diddly.Position = UDim2.new(0,0,0,0)
elseif value == 1 then
diddly.Position = UDim2.new(0,-16,0,0)
elseif value == 2 then
diddly.Position = UDim2.new(0,-33,0,0)
elseif value == 3 then
diddly.Position = UDim2.new(0,-50,0,0)
elseif value == 4 then
diddly.Position = UDim2.new(0,-66,0,0)
elseif value == 5 then
diddly.Position = UDim2.new(0,-82,0,0)
elseif value == 6 then
diddly.Position = UDim2.new(0,-99,0,0)
elseif value == 7 then
diddly.Position = UDim2.new(0,-116,0,0)
elseif value == 8 then
diddly.Position = UDim2.new(0,-132,0,0)
elseif value == 9 then
diddly.Position = UDim2.new(0,-148,0,0)
end
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