generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Script Help?

Previous Thread :: Next Thread 
ViktorCorvinus is not online. ViktorCorvinus
Joined: 02 Sep 2013
Total Posts: 89
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 is not online. 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
ViktorCorvinus is not online. ViktorCorvinus
Joined: 02 Sep 2013
Total Posts: 89
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 is not online. 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 is not online. 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
ViktorCorvinus is not online. ViktorCorvinus
Joined: 02 Sep 2013
Total Posts: 89
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
ViktorCorvinus is not online. ViktorCorvinus
Joined: 02 Sep 2013
Total Posts: 89
08 Aug 2015 05:54 PM
then what forum?
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
08 Aug 2015 06:09 PM
this is the right forum.
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
08 Aug 2015 06:12 PM
telus script should be working.
Report Abuse
ViktorCorvinus is not online. ViktorCorvinus
Joined: 02 Sep 2013
Total Posts: 89
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
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
09 Aug 2015 09:03 AM
Then maybe you should learn to debug scripts yourself.
Report Abuse
ViktorCorvinus is not online. ViktorCorvinus
Joined: 02 Sep 2013
Total Posts: 89
09 Aug 2015 09:06 AM
I just wanted help man.... ;c
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
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
ViktorCorvinus is not online. ViktorCorvinus
Joined: 02 Sep 2013
Total Posts: 89
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
computerchris is not online. computerchris
Joined: 02 May 2009
Total Posts: 665
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image