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 » Scripting Helpers
Home Search
 

Re: How to fix...?

Previous Thread :: Next Thread 
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 11:26 PM
When mouse is in specified position the colours of children inside RobloxianGui should all change.

for i, SeanyBiy in pairs(game.Players:GetPlayers()) do
local skinTone7 = workspace.SkinTone7;
SeanyBiy.PlayerGui.ScreenGui.Tone.SkinColour7.MouseEnter:connect(function()
SeanyBiy.PlayerGui.ScreenGui.Tone.SkinColour7.Position = UDim2.new(0, 550, 0, 350)
script.Parent.Parent.RobloxianGui.Children.BackgroundColor3 = skinTone7.Value;
end)
end
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 11:27 PM
Sorry, wrong script.

for i, SeanyBiy in pairs(game.Players:GetPlayers()) do
local skinTone7 = workspace.skinTone7;
SeanyBiy.PlayerGui.ScreenGui.Tone.SkinColour7.MouseEnter:connect(function()
SeanyBiy.PlayerGui.ScreenGui.Tone.SkinColour7.Position = UDim2.new(0, 550, 0, 350)
for i, v in pairs(script.Parent.Parent.RobloxianGui:GetChildren()) do
v.BackgroundColor3 = skinTone7.Value
end)
end
Report Abuse
Cryptonix is not online. Cryptonix
Joined: 03 Jun 2011
Total Posts: 17164
29 Jul 2012 11:27 PM
[ Content Deleted ]
Report Abuse
omzig is not online. omzig
Joined: 18 Jun 2008
Total Posts: 578
29 Jul 2012 11:28 PM
Crypt, in Guis there are for vectors, not 3.


There's the -X, +X, -Y, +Y.

Z is not used since guis are not 3D.

So these are used to move them left, right, up, down, if I am correct.
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 11:28 PM
That is the position.
Report Abuse
omzig is not online. omzig
Joined: 18 Jun 2008
Total Posts: 578
29 Jul 2012 11:29 PM
**(four vectors, not three.
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 11:30 PM
How to fix script though? ;o
Report Abuse
Cryptonix is not online. Cryptonix
Joined: 03 Jun 2011
Total Posts: 17164
29 Jul 2012 11:31 PM
[ Content Deleted ]
Report Abuse
omzig is not online. omzig
Joined: 18 Jun 2008
Total Posts: 578
29 Jul 2012 11:34 PM
The rules:

"Don't post a script without posting what's wrong with it."

Not to be a minimod, but:

Could you give me an output?
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 11:36 PM
05:18:00 - Players.Player.PlayerGui.ScreenGui.Tone.SkinColour7.LocalScript:7: unexpected symbol near ')'

:P
Report Abuse
omzig is not online. omzig
Joined: 18 Jun 2008
Total Posts: 578
29 Jul 2012 11:37 PM
Also,

I believe there's some sort of functoin you could use:

Check the wiki for MouseHovered or something.

I've used it before, but it was a while ago.
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 11:38 PM
It's already in the script :P. It's MouseEnter.
Report Abuse
omzig is not online. omzig
Joined: 18 Jun 2008
Total Posts: 578
29 Jul 2012 11:39 PM
Is output refferencing something about your end?
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
29 Jul 2012 11:42 PM
Your ends are weird. The ) after the first end gave you the error.


for i, SeanyBiy in pairs(game.Players:GetPlayers()) do
local skinTone7 = workspace.skinTone7;

SeanyBiy.PlayerGui.ScreenGui.Tone.SkinColour7.MouseEnter:connect(function()
SeanyBiy.PlayerGui.ScreenGui.Tone.SkinColour7.Position = UDim2.new(0, 550, 0, 350)
for i, v in pairs(script.Parent.Parent.RobloxianGui:GetChildren()) do
v.BackgroundColor3 = skinTone7.Value
end
end)
end
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 11:45 PM
@ninja, I changed the script to yours, but now this appears on Output...

05:44:51 - Players.Player.PlayerGui.ScreenGui.Tone.SkinColour7.LocalScript:9: ')' expected (to close '(' at line 5) near 'end'
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 11:47 PM
Oh, btw, I moved the v line to the top.
Report Abuse
SeanyBiy is not online. SeanyBiy
Joined: 18 Jun 2010
Total Posts: 9407
29 Jul 2012 11:48 PM
Lol, I moved back and it works perfectly, thanks a lot :)
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
30 Jul 2012 12:28 AM
Np, I guess :P
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