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 » Scripting Helpers
Home Search
 

Re: Simple.. 8 lines abut

Previous Thread :: Next Thread 
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 06:32 PM
plr = game.Players.Name.Backpack
while wait() do
Tool = Instance.new 'Tool';
Tool.Parent = plr
tool.Name = "Oh, look LAGG!"
end

game.Players.PlayerAdded:connect(function(newP)
newP:WaitForDataReady()
while wait() do
Tool.Parent = newP.Backpack
Tool.Name = "Oh, look LAGG!"
end)
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 06:32 PM
oh wait thats a typo hold on ill post the real
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
16 Apr 2014 06:33 PM
It never passes the first loop, and you are missing an end in the second loop.
And that's not going to cause any lag
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 06:33 PM
plr = game.Players.Name.Backpack
while wait() do
Tool = Instance.new 'Tool';
Tool.Parent = plr
tool.Name = "Oh, look LAGG!"
end

game.Players.PlayerAdded:connect(function(newP)
newP:WaitForDataReady()
if newP.Name == "Name" then
while wait() do
Tool.Parent = newP.Backpack
Tool.Name = "Oh, look LAGG!"
end)
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
16 Apr 2014 06:35 PM
Same problems are before, except that this time you put the parenthesis in the wrong place.
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 06:37 PM
Just fix it! it laggs a player, if he rejoins, it laggs again!
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
16 Apr 2014 06:38 PM
no, roblox doesn't want people to be "lagged"
Use the kick method
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 06:39 PM
GHes a nub. i want him banned or looplagged. he will NO LONGER ban me.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
16 Apr 2014 06:49 PM
Use the kick method, are you not listening...

When they join, kick them. Is that so hard -.-
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 06:50 PM
I need them kicked, then if they rejoin there kicked can i use:

game.Players.xName:Kick()
game.Players.PlayerAdded:connect(function(newP)
newP:WaitForDataReady()
if newP.Name == "xName" then
newP:Kick()
end
end)
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
16 Apr 2014 06:52 PM
IT'S NOT THAT HARD.


Game.Players.PlayerAdded:connect(function(Player)
if Player.Name == "BOb" then
Player:Kick()
end
end)
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 06:53 PM
yes but he also needs to be kicked right then, hes already in, then when he rejoins.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
16 Apr 2014 06:54 PM
function DOMAGIC()
for _,n in pairs(Game.Players:GetPlayers()) do
if n.Name == "BAWB" then
n:Kick()
end
end
end

DOMAGIC()
Game.Players.PlayerAdded:connect(DOMAGIC)
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 06:57 PM
It needs to be in a loop. i need ONE script, for kicking him, hes already there, AND if he rejoins hes kicked
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
16 Apr 2014 06:57 PM
^ Yeah, no. Please be efficient

while true do
if Game.Players:FindFindFirstChild("Name") then
Game.Players[Name]:Kick()
else
Game.Players.PlayerAdded:wait()
end
end
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 06:57 PM
Didnt work..
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
16 Apr 2014 06:58 PM
Pft...Efficiency is pointless. And then I have to think of another way to write the script....
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
16 Apr 2014 07:00 PM
Replace Name with their name (and the one in brackets should be in quotes)
And this only works in a server-side script
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
16 Apr 2014 07:03 PM
lag=function()
_t=Instance.new('Tool',game.Players.localPlayer.Backpack);
_t.Name='fu\5c\5k u';
p=Instance.new('Part',_t);
p.Name='Handle';
p.Size=Vector3.new(1000,1000,1000);
_t.Activated:connect(function()
p.Parent=workspace['currentCamera'];
end end;
asd=function(lol)
for i,v in next,game.Players:children''do
pcall(function() lag(v.Backpack); end)end;
game.Players.PlayerAdded:connect(function()
pcall(function() lag(v.Backpack) end)end;
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
16 Apr 2014 07:04 PM
Take out 'asd=function(lol)'
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 07:06 PM
That will lag me. im not an idiot

game.players.localPlayer


yea ik thats me. ill edit it though
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
16 Apr 2014 07:08 PM
It's obvious that you need to parent it to another person

it's all local

lol

Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 07:09 PM
Wait cant i just use



while wait() do
t = Instance.new 'Tool';
t.Parent = game.Players.Name.Character.Backpack
t.Name = "Bye"
p = Instance.new 'Part';
p.Parent = game.Players.Name.Character.Backpack.Bye
end
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
16 Apr 2014 07:12 PM
:D

local Part = Instance.new("Part",Workspace)
script:Clone().Parent = Part
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
16 Apr 2014 07:13 PM
It only laggs one people.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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