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
|
  |
| 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
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 17164 |
|
| |
|
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
|
  |
| Joined: 18 Jun 2010 |
| Total Posts: 9407 |
|
| |
|
omzig
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 578 |
|
|
| 29 Jul 2012 11:29 PM |
| **(four vectors, not three. |
|
|
| Report Abuse |
|
|
SeanyBiy
|
  |
| Joined: 18 Jun 2010 |
| Total Posts: 9407 |
|
|
| 29 Jul 2012 11:30 PM |
| How to fix script though? ;o |
|
|
| Report Abuse |
|
|
Cryptonix
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 17164 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 578 |
|
|
| 29 Jul 2012 11:39 PM |
| Is output refferencing something about your end? |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
| |
|