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: Surface Gui

Previous Thread :: Next Thread 
KEVEKEV77 is not online. 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 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
18 Jul 2014 02:05 PM
bump
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
18 Jul 2014 02:12 PM
NEVER.
EVER.
USE.
REGULAR.
SCRIPTS.
WITH.
CLIENT.
STUFF.

ALWAYS use a LocalScript.
Report Abuse
ComBatPro is not online. ComBatPro
Joined: 27 Dec 2010
Total Posts: 205
18 Jul 2014 02:13 PM
im stealing this code
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
18 Jul 2014 02:14 PM
^ what you cant code urself?
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
18 Jul 2014 02:14 PM
notunknown, this is in workspace.
Report Abuse
VisualGraphics is not online. VisualGraphics
Joined: 26 Nov 2010
Total Posts: 6515
18 Jul 2014 02:21 PM
http://wiki.roblox.com/index.php?title=RBX.lua.SurfaceGui_(Object)

will this help?
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
18 Jul 2014 02:31 PM
not really, but I found a fix, ty!
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