of     1   

SnowyDuckie
#186285042Tuesday, March 29, 2016 12:48 AM GMT

Using MouseButton1Click in a regular server script in a SurfaceGui>TextButton. I need a redirection to the player, how should I do this separate local script with client-sided handling?
PureConcept
#186285202Tuesday, March 29, 2016 12:49 AM GMT

You can always put it in startergui and use a localscript http://www.roblox.com/unnamed-item?id=385096183 Ready to waste a ton of money of VR tech for Sword Art Online : The Beginning
DrSaint
#186285320Tuesday, March 29, 2016 12:51 AM GMT

Use StarterGUI and localscripts and just adorn the surfacegui
SnowyDuckie
#186285376Tuesday, March 29, 2016 12:51 AM GMT

yeah, thought so as well.
SnowyDuckie
#186285845Tuesday, March 29, 2016 12:57 AM GMT

@Dr How does adorning the SurfaceGui even help? It just attaches it to the part.
PureConcept
#186285891Tuesday, March 29, 2016 12:57 AM GMT

....? You're practically "adorning" it when you place it in a part http://www.roblox.com/unnamed-item?id=385096183 Ready to waste a ton of money of VR tech for Sword Art Online : The Beginning
DrSaint
#186285905Tuesday, March 29, 2016 12:58 AM GMT

Because you're going to use localscripts in startergui for a SurfaceGui.
SnowyDuckie
#186285951Tuesday, March 29, 2016 12:58 AM GMT

Exactly xD
SnowyDuckie
#186286053Tuesday, March 29, 2016 12:59 AM GMT

works fine. workspace.Part.SurfaceGui.TextButton.MouseButton1Click:connect(function() end) works fine without defining its adornee..?
DrSaint
#186286208Tuesday, March 29, 2016 1:02 AM GMT

I thought you were going to use local scripts inside the SurfaceGUI inside StarterGui to get the player redirection. Woopsie lol.
SnowyDuckie
#186286419Tuesday, March 29, 2016 1:04 AM GMT

LocalScripts inside surfacegui's? in other words, LocalScripts inside workspace? http://wiki.roblox.com/index.php?title=API:Class/LocalScript "A LocalScript will only run Lua code if it is a descendant of one of the following objects: A Player's Backpack, such as a child of a Tool A Player's Character model A Player's PlayerGui A Player's PlayerScripts The ReplicatedFirst service"
DrSaint
#186286598Tuesday, March 29, 2016 1:06 AM GMT

@Synth What? Lol
SnowyDuckie
#186286740Tuesday, March 29, 2016 1:08 AM GMT

You were assuming I'm using localscripts in workspace o3o
DrSaint
#186286788Tuesday, March 29, 2016 1:09 AM GMT

OH. Yea I was LOOL. What's the set up right now?
PureConcept
#186286845Tuesday, March 29, 2016 1:09 AM GMT

You asked for a way to do a redirection to a player use a localscript and the player = game.Players.LocalPlayer http://www.roblox.com/unnamed-item?id=385096183 Ready to waste a ton of money of VR tech for Sword Art Online : The Beginning
SnowyDuckie
#186286975Tuesday, March 29, 2016 1:11 AM GMT

Ya I know repeat wait() until game.Players.LocalPlayers and game.Players.LocalPlayers.Character local myPlr, myChar = game.Players.LocalPlayer,game.Players.LocalPlayer.Character I got that, was just wondering if I could redirect from SurfaceGui Server scripts.
DrSaint
#186287002Tuesday, March 29, 2016 1:12 AM GMT

Ah ok. No, you can't. :c
SnowyDuckie
#186287056Tuesday, March 29, 2016 1:12 AM GMT

Setup is: Workspace >Part >>SurfaceGUI >>>TextButton >>>>Script StarterGui >LocalScript
DrSaint
#186287553Tuesday, March 29, 2016 1:19 AM GMT

Yea can't do that. Gotta have the LocalScript inside the gui.

    of     1