leo1457
|
  |
| Joined: 01 May 2014 |
| Total Posts: 6921 |
|
|
| 07 Oct 2016 12:11 PM |
LocalScript that works in studio:
player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function() player.TeamColor = BrickColor.new("Bright red") player.Character:MoveTo(workspace.JapanSpawn.Position) player.PlayerGui.TeamChange.Frame.Visible = false player.PlayerGui.WelcomeScreen.Frame.Visible = true end)
What do I do?
|
|
|
| Report Abuse |
|
|
|
| 07 Oct 2016 12:13 PM |
| Is the local script a decedent of workspace or a gui? |
|
|
| Report Abuse |
|
|
Cytheur
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 7328 |
|
|
| 07 Oct 2016 12:17 PM |
It's obviously from a GUI since he's using the MouseButton1Click
If it's Filtering Enabled it won't work.
R$552,726 |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2016 12:18 PM |
^yup, client won't be able to do these two lines:
player.TeamColor = BrickColor.new("Bright red") player.Character:MoveTo(workspace.JapanSpawn.Position) |
|
|
| Report Abuse |
|
|
Cytheur
|
  |
| Joined: 12 Aug 2014 |
| Total Posts: 7328 |
|
|
| 07 Oct 2016 12:20 PM |
In some of my local scripts, I like to add this.
repeat wait() until game.Players.LocalPlayer
It might be a placebo, but I swear that has fixed some strange bugs before.
R$552,726 |
|
|
| Report Abuse |
|
|
|
| 07 Oct 2016 12:21 PM |
Most likely placebo.
If the .LocalPlayer property did not exist, you would not be in the game.
If you're not in the game, you don't have the script. |
|
|
| Report Abuse |
|
|
leo1457
|
  |
| Joined: 01 May 2014 |
| Total Posts: 6921 |
|
| |
|