|
| 23 Dec 2015 10:41 AM |
So here's my script:
local Core = {} local sss = game.ServerScriptService local sg = game.StarterGui function Core:StartService() Type = game:GetRemoteBuildMode() if Type == false then script.DogeSecPanel.Parent = sss script.Script.Parent = sss script.Verify.Parent = sss script.TrelloAPI.Parent = sss script.RNoticeUI.Parent = sg script.DogeSecGui.Parent = sg script:remove() elseif Type == nil or Type == true then game:GetService('Workspace'):FindFirstChild('DogeSec | Loader'):remove() NewMessage = Instance.new('Hint') NewMessage.Parent = game.Workspace NewMessage.Name = 'ds_Error' NewMessage.Text = 'DogeSec can not function in this server. Please contact iDerpyDogez for help.' end end return Core
When the game loads it doesn't do anything, help? c: |
|
|
| Report Abuse |
|
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 23 Dec 2015 10:44 AM |
| Because you never called :StartService() |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2015 10:49 AM |
How do I do that?
I'm new to scripting, sorry. :c |
|
|
| Report Abuse |
|
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 23 Dec 2015 10:53 AM |
That's a ModuleScript, right? You'll need to create another script that calls require() on it and then :StartService, like: require(workspace.MainModule):StartService() |
|
|
| Report Abuse |
|
|
| |
|