#bit of a long post

25 messages · Page 1 of 1 (latest)

sacred parrot
#

so im trying to fix a hitbox error and this is my code
local Players = game:GetService("Players")
local plr = workspace.Player

Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
Character.Parent = plr
end)
end)
im trying to set it to a script that disables hitboxes and this is the code
local PhysicsService = game:GetService("PhysicsService")
PhysicsService:CollisionGroupSetCollidable("Player","Mob",false)
the folder for player is in workspace and mob is in serverstorage i dont knwo if that helps but im so lost rn

#

i can hop in a vc to better explain it

spiral thorn
#

player isnt in the workspace

#

also you get the player from Players.PlayerAdded

#

also format it

#
local Players = game:GetService("Players")
local plr = workspace.Player

Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        Character.Parent = plr
    end)
end)


local PhysicsService =  game:GetService("PhysicsService")
PhysicsService:CollisionGroupSetCollidable("Player","Mob",false)```
sacred parrot
#

is the basic code correct tho

spiral thorn
#

whats it supposed to do

sacred parrot
#

add a player to a folder to where the physicsservice makes it so mobs cant be moved by players and mobs cant be moved by mobs

#

i could show you in a vc for better detail

#

@spiral thorn sorry if you didnt wanna be pinged

spiral thorn
#

oh my bad

#

"Player" would be just a text

#

and so would "Mob"

sacred parrot
#

wdyn

#

wdym

#

in the final line

#

or

spiral thorn
#

yes

#

im not too sre how physic service works but

#

i think thats jsut the text

sacred parrot
#

but it makes it so mobs cant interact with mobs so i dont think so

#

unless im being an idiot

#

(im in general 2 if curious)

#

i think it has something to do with mob being in serverstorage