enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 28 Aug 2013 11:06 PM |
| For some reason some local scripts don't work anymore if put into starterGui? |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Aug 2013 11:07 PM |
| local scripts are locally ran. make sure the scripts are for play local player, not the server in general. |
|
|
| Report Abuse |
|
|
enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 28 Aug 2013 11:09 PM |
| If I put a script into StarterGui and use localplayer it should work right? |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
| |
|
|
| 28 Aug 2013 11:13 PM |
| r weeeee best fwends drahsid? |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Aug 2013 11:15 PM |
| Lol you just come in and say that xD lmao. Yeah. xD |
|
|
| Report Abuse |
|
|
enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 28 Aug 2013 11:17 PM |
Heres one of them local Player = Game.Players.LocalPlayer local Mouse = Player:GetMouse() local char = Player.Character local controllers = {}
function removeControl() for _, controller in pairs(game:GetService("ControllerService"):GetChildren()) do controller.Parent = nil -- Take the controller out of ControllerService table.insert(controllers, controller) -- Save it for later end end
function addControl() for _, controller in pairs(controllers) do controller.Parent = game:GetService("ControllerService") -- Put the controller back into ControllerService end controllers = {} -- Clear the table end
function busy() isbusy = script.Parent.Busy if isbusy.Value == true then removeControl() elseif isbusy.Value == false then addControl() end end
script.Parent.Busy.Changed:connect(busy)
|
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Aug 2013 11:20 PM |
| looks fine too me, what does the output say? |
|
|
| Report Abuse |
|
|
enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 28 Aug 2013 11:33 PM |
| Works in studio not in game. |
|
|
| Report Abuse |
|
|
enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 28 Aug 2013 11:38 PM |
| Theres no wrong output that's the problem. |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Aug 2013 11:38 PM |
| OH! I KNOW! start a local server, then player, then look at the output |
|
|
| Report Abuse |
|
|
enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 28 Aug 2013 11:40 PM |
| But how can I add myself into the game on a local scripter it doesn't show me. so the script won't even start. |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
| |
|
enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 28 Aug 2013 11:42 PM |
| If I start a server where is my player the player that you play with can't get any simpler then that >.< |
|
|
| Report Abuse |
|
|
Raphael7
|
  |
| Joined: 03 Dec 2008 |
| Total Posts: 2479 |
|
|
| 28 Aug 2013 11:43 PM |
-- Try this.
repeat wait() until game.Players.LocalPlayer
local Player = Game.Players.LocalPlayer local Mouse = Player:GetMouse() local char = Player.Character local controllers = {}
function removeControl() for _, controller in pairs(game:GetService("ControllerService"):GetChildren()) do controller.Parent = nil -- Take the controller out of ControllerService table.insert(controllers, controller) -- Save it for later end end
function addControl() for _, controller in pairs(controllers) do controller.Parent = game:GetService("ControllerService") -- Put the controller back into ControllerService end controllers = {} -- Clear the table end
function busy() isbusy = script.Parent.Busy if isbusy.Value == true then removeControl() elseif isbusy.Value == false then addControl() end end
script.Parent.Busy.Changed:connect(busy)
> Trolls are radical hipsters. |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Aug 2013 11:46 PM |
| after you start server you go to where you started the server and click start player. |
|
|
| Report Abuse |
|
|
enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 29 Aug 2013 12:16 AM |
| Lol it works on a server though. |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
| |
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 29 Aug 2013 12:21 AM |
Now*
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 29 Aug 2013 12:31 AM |
| It works in studio test server not on a live game tho. |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2013 12:36 AM |
| Servers don't run on different clients than solo, so why would starting a server start a difference? |
|
|
| Report Abuse |
|
|
enyahs7
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 9820 |
|
|
| 29 Aug 2013 12:39 AM |
| I can prove it doesn't work on a real game but does in studio its very weird. |
|
|
| Report Abuse |
|
|