|
| 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 |
|
|
|
| 16 Apr 2014 06:32 PM |
| oh wait thats a typo hold on ill post the real |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 16 Apr 2014 06:37 PM |
| Just fix it! it laggs a player, if he rejoins, it laggs again! |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 16 Apr 2014 06:39 PM |
| GHes a nub. i want him banned or looplagged. he will NO LONGER ban me. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 16 Apr 2014 07:04 PM |
| Take out 'asd=function(lol)' |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 16 Apr 2014 07:12 PM |
:D
local Part = Instance.new("Part",Workspace) script:Clone().Parent = Part |
|
|
| Report Abuse |
|
|
| |
|