|
| 16 Dec 2016 12:41 PM |
print("RUNNING") local player = game.Players:GetPlayerFromCharacter(script.Parent) local mainscript = player.PlayerGui:WaitForChild("MyScripts"):WaitForChild("Main"):Clone() mainscript.Parent = script.Parent mainscript.Disabled = false print(mainscript)
This is just in a script in StarterCharacter scripts. For some reason, even though it is in my character in the server, it never runs. Never even prints ("RUNNING"). It's a server script. |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 12:42 PM |
that's the entire script? it's enabled, right?
Formerly ToxicDominator - add 30,319 posts |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 12:44 PM |
| Yes. It's really strange because it works perfectly in studio but not in-game. I have other server scripts in StarterCharacter that work 100% fine so I have no clue what's wrong with it. |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 12:44 PM |
is FilteringEnabled set to true?
Formerly ToxicDominator - add 30,319 posts |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Dec 2016 12:46 PM |
wattt
Formerly ToxicDominator - add 30,319 posts |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 12:47 PM |
I'm going to try putting the code in a script that is working in StarterChracterScripts. Also Toxic aren't you from RT? Do you remember Klink45? |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 12:48 PM |
u sicko!
yes lol
Formerly ToxicDominator - add 30,319 posts |
|
|
| Report Abuse |
|
|
Rerumu
|
  |
| Joined: 11 Oct 2014 |
| Total Posts: 950 |
|
|
| 16 Dec 2016 01:51 PM |
Lol. Normal scripts don't run inside of Player[Insert folder name] |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 01:52 PM |
^ please read. it's inside of StarterCharacterScripts
Formerly ToxicDominator - add 30,319 posts |
|
|
| Report Abuse |
|
|
Rerumu
|
  |
| Joined: 11 Oct 2014 |
| Total Posts: 950 |
|
|
| 16 Dec 2016 02:06 PM |
Please learn.
StarterPlayerScripts creates the scripts to PlayerScripts under Player, PlayerScripts do not replicate back to the server. Therefore, your script will not run. |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 02:23 PM |
oh my god how dumb are you StarterCharacterScripts and StarterPlayerScripts are two different objects
Formerly ToxicDominator - add 30,319 posts |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 05:44 PM |
It's supposed to load this script into their character. Also putting the code in another script did not work either. Strange. |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 05:46 PM |
Just use StarterCharacterScripts. It's 99% easier.
|
|
|
| Report Abuse |
|
|
|
| 16 Dec 2016 05:47 PM |
| This is in StarterCharacterScripts. It is replicated to their character but never runs, even though it isn't disabled. |
|
|
| Report Abuse |
|
|
Rerumu
|
  |
| Joined: 11 Oct 2014 |
| Total Posts: 950 |
|
|
| 19 Dec 2016 07:50 AM |
| Just because it's replicated to the character doesn't mean it's bound to run. What you're trying to do should be done in Backpack instead. Cease your stupidity. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2016 03:04 PM |
LOL
Formerly ToxicDominator - add 30,319 posts |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2016 03:06 PM |
"Normal scripts don't run inside of Player[Insert folder name]"
"What you're trying to do should be done in Backpack instead"
self contradictory?
|
|
|
| Report Abuse |
|
|
|
| 19 Dec 2016 03:13 PM |
| You shouldn't call people stupid if you don't have confidence in your own answers bud. |
|
|
| Report Abuse |
|
|
Rerumu
|
  |
| Joined: 11 Oct 2014 |
| Total Posts: 950 |
|
|
| 19 Dec 2016 07:53 PM |
You shouldn't twist people's words to seem right. Player[Insert folder name] referring to the fact that nothing that is non-native to the player will run a script, and even then only local scripts run in the Scripts folder. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2016 07:55 PM |
It was fun to read you guys' comments. I ended up using remoteevents and telling the server to do it when the player spawned in. It works fine now.
Thanks. |
|
|
| Report Abuse |
|
|