|
| 08 Aug 2015 05:20 PM |
| I can't seem to figure out how to make it so that when a player enters and also even if they respawn... if they have a certain name a script is inserted into their torso... |
|
|
| Report Abuse |
|
|
MTamidex
|
  |
| Joined: 17 Oct 2013 |
| Total Posts: 1092 |
|
|
| 08 Aug 2015 05:33 PM |
function onPlayerEntered() if player.Name = "Legolas" then script = Instance.new("Script") script.Parent = Player.Torso end end
that's all i can do. It might not even work. |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2015 05:36 PM |
| I want it to clone a script I have placed in lighting and then place it in the torso of someone on a specific list.... |
|
|
| Report Abuse |
|
|
telus
|
  |
| Joined: 02 Dec 2006 |
| Total Posts: 49 |
|
|
| 08 Aug 2015 05:45 PM |
local plr = game.Players.LocalPlayer local function onRespawn(character) x = game.Lighting.script:Clone(). Parent = plr.Character.Torso end local function onPlayerEntered(newPlayer) newPlayer.CharacterAdded:connect(onRespawn) end game.Players.PlayerAdded:connect(onPlayerEntered)
|
|
|
| Report Abuse |
|
|
quatos
|
  |
| Joined: 05 Mar 2013 |
| Total Posts: 419 |
|
|
| 08 Aug 2015 05:49 PM |
wrong forum.
who needs a siggy when you can have a yggis? |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2015 05:53 PM |
| It didnt work I just want a script that gives only certain people a script that is placed in lighting to be cloned and placed into their torso when they enter or respawn |
|
|
| Report Abuse |
|
|
| |
|
MTamidex
|
  |
| Joined: 17 Oct 2013 |
| Total Posts: 1092 |
|
| |
|
MTamidex
|
  |
| Joined: 17 Oct 2013 |
| Total Posts: 1092 |
|
|
| 08 Aug 2015 06:12 PM |
| telus script should be working. |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2015 09:00 AM |
| it doesn't work plus I want it so that only certain players get the script cloned into their torso from the lighting |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2015 09:03 AM |
| Then maybe you should learn to debug scripts yourself. |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2015 09:06 AM |
| I just wanted help man.... ;c |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2015 09:08 AM |
| In studio Go to View > Output, this is very important if you attempt to make anything using scripts. It will tell you which script errord, what line of the script, and how that line errord. |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2015 09:12 AM |
| I do but nothing comes up I guess I'm doing the script totally wrong thas why I just rather have someone be kind enough to give me a script or something... |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2015 09:22 AM |
For real, this is the wrong forum first off.
Second off..
local charList = {"ViktorCorvinus", "Player"}
function checkName(name) for i = 1, #charList do if name == charList[i] then return true end end return false end
game.Players.PlayerAdded:connect(function(plr) if checkName(plr.Name) then plr.CharacterAdded:connect(function(char) script:Clone().Parent = char end) end end)
Thirdly, learn to debug. |
|
|
| Report Abuse |
|
|