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
 

How do i make it so players dont collide with other players?

Previous Thread :: Next Thread 
markaaron is not online. markaaron
Joined: 21 Feb 2011
Total Posts: 455
27 Aug 2014 07:43 PM
please tell me how i can make it so players dont collide with other players
Report Abuse
1pie23 is not online. 1pie23
Joined: 11 Jul 2010
Total Posts: 1865
27 Aug 2014 07:46 PM
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function()
for i,v in pairs(p.Character:GetChildren()) do
if v:IsA("Part") then
v.CanCollide = false
end
end
end)
end)


My script will make your player fall through the floor if no hats are present, sorry.
Report Abuse
SethDusek5 is not online. SethDusek5
Joined: 26 Mar 2011
Total Posts: 2580
27 Aug 2014 07:47 PM
put this in localscript wherever you want
local plr = game.Players.LocalPlayer
local chr = plr.Character
chr.Torso.Touched:connect(function(hit)
for i,v in pairs(chr:GetChildren()) do
if not hit == v then
hit:destroy()
end
end
end)

That'll teach them not to touch each other!
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
27 Aug 2014 07:50 PM
found some errors with seth,

local plr = game.Players.LocalPlayer
local chr = plr.Character
chr.Torso.Touched:connect(function(hit)
for i,v in pairs(chr:GetChildren()) do
if hit == v then
return
end
end
hit:destroy()
end)
Report Abuse
markaaron is not online. markaaron
Joined: 21 Feb 2011
Total Posts: 455
27 Aug 2014 07:53 PM
thx
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