|
| 23 Sep 2017 03:26 PM |
It says that LocalPlayer is a nil value:
g############################################### local le########### Instance.new("Model", plr) le################ ("#################ocal Points = In###########################e############ Points.Name = ("Rank") ga############################################### ("Guest") if game.Players.LocalPlayer.Name == ("##################hen ga############################################### ("Eagle") end if game.Players.LocalPlayer.Name == ("#####################hen ga############################################### ("Mighty Eagle") end if game.Players.LocalPlayer.Name == ("#################hen ga############################################### ("In-Group") end if game.Players.LocalPlayer.Name == ("############hen ga############################################### ("In-Group") end if game.Players.LocalPlayer.Name == ("##############hen ga############################################### ("In-Group") end if game.Players.LocalPlayer.Name == ("#############hen ############################################### = ("In-Group")
#### if game.Players.LocalPlayer.Name == ############ then ############################################### = ("In-Group") #### end) |
|
|
| Report Abuse |
|
|
runaredie
|
  |
| Joined: 13 Aug 2015 |
| Total Posts: 30 |
|
| |
|
|
| 23 Sep 2017 04:32 PM |
| Server scripts can't use local player. |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2017 05:16 PM |
You are using the wrong version of lua, roblox doesnt use Lua 5.#
Image how hard scripting would be if roblox filtered scripts? random thought
LocalPlayer can only be used in the clients. LocalPlayer is "What player is this script running on?" On the server, it's nil because your not on a player, you are on a server
Are you sure you don't want to use API:Class/Player/GetRoleInGroup |
|
|
| Report Abuse |
|
|