KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 18 Jul 2014 02:18 AM |
UNFORTUNAETELY, I figured out that textboxes dont work in surface gui's, along with a bunch of other cool things, so I plan to make them. My textbox, right now, stinks.
Hover = true; Texting = true; local player; local mouse; local hum; local Key;
script.Parent.MouseEnter:connect(function() Hover = true; print(Hover); end)
script.Parent.MouseLeave:connect(function() Hover = false; print(Hover); end)
function Text(keyname) hum.WalkSpeed = 0; if Texting == true then while Key == true do wait(0.1) script.Parent.Text = script.Parent.Text..keyname; end end end
script.Parent.Parent.Parent.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then hum = hit.Parent.Humanoid; name = hit.Parent player = game.Players:GetPlayerFromCharacter(name) mouse = player:GetMouse(); print(player); print(mouse); print'h' if Hover == true then Texting = true; else Texting = false; end end end)
function KeyDown(key) Key = true; print(key) Text(key) print'g' end function KeyUp(key) Key = false; end
repeat wait() until mouse and hum mouse.KeyUp:connect(KeyUp); mouse.KeyDown:connect(KeyDown);
First of all, The hovering does not work If someone puts their mouse on and off, it does not print Hover. Also, it seems Button1Down does not exist in 3d form, so I had to use touched event? Can someone tell me why hovering aint working, as well as Button1Down not showing up in events? for 3d? Can someoen tell me why these arent working :P |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
|
| 18 Jul 2014 02:12 PM |
NEVER. EVER. USE. REGULAR. SCRIPTS. WITH. CLIENT. STUFF.
ALWAYS use a LocalScript. |
|
|
| Report Abuse |
|
|
ComBatPro
|
  |
| Joined: 27 Dec 2010 |
| Total Posts: 205 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 18 Jul 2014 02:14 PM |
| ^ what you cant code urself? |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 18 Jul 2014 02:14 PM |
| notunknown, this is in workspace. |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 02:21 PM |
http://wiki.roblox.com/index.php?title=RBX.lua.SurfaceGui_(Object)
will this help? |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 18 Jul 2014 02:31 PM |
| not really, but I found a fix, ty! |
|
|
| Report Abuse |
|
|