Fe player collide script · RobloxExploits.lolFe player collide script
Eatkidmaster 1 month ago 1.1K viewsRun it
Copy the script and paste it into your executor.
Fe player collide script.lua · 356 lines
Players = :()
PhysicsService = :()
UserInputService = :()
LocalPlayer = Players.LocalPlayer
ENABLED =
COLLISION_GROUP =
(()
PhysicsService:(COLLISION_GROUP)
)
(()
PhysicsService:(
COLLISION_GROUP,
COLLISION_GROUP,
)
)
(()
PhysicsService:(
COLLISION_GROUP,
,
)
)
PlayerGui = LocalPlayer:()
Gui = .()
Gui.Name =
Gui.ResetOnSpawn =
Gui.IgnoreGuiInset =
Gui.DisplayOrder =
Gui.Parent = PlayerGui
Button = .()
Button.Name =
Button.Size = .(, )
Button.Position = .(, -, , -)
Button.BackgroundColor3 = .(, , )
Button.BorderSizePixel =
Button.TextColor3 = .(, , )
Button.TextScaled =
Button.Font = .Font.GothamBold
Button.Text =
Button.Active =
Button.AutoButtonColor =
Button.Parent = Gui
Corner = .()
Corner.CornerRadius = .(, )
Corner.Parent = Button
SMOOTH_PHYSICS = PhysicalProperties.(
,
,
,
,
)
BODY_PART_NAMES = {
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] = ,
[] =
}
(character, enabled)
character
character == LocalPlayer.Character
_, object (character:())
object:()
BODY_PART_NAMES[object.Name]
enabled
object.CanCollide =
object.CanTouch =
(()
object.CollisionGroup = COLLISION_GROUP
)
object.CustomPhysicalProperties = SMOOTH_PHYSICS
object.CanCollide =
(()
object.CollisionGroup =
)
object.CanCollide =
()
_, player (Players:())
player ~= LocalPlayer
player.Character
(player.Character, ENABLED)
(player)
player == LocalPlayer
player.CharacterAdded:((character)
character:(, )
.()
(character, ENABLED)
character.DescendantAdded:((object)
ENABLED
object:()
.()
BODY_PART_NAMES[object.Name]
object.CanCollide =
(()
object.CollisionGroup = COLLISION_GROUP
)
object.CustomPhysicalProperties = SMOOTH_PHYSICS
object.CanCollide =
)
)
_, player (Players:())
(player)
Players.PlayerAdded:(SetupPlayer)
()
ENABLED
Button.Text =
Button.BackgroundColor3 = .(, , )
Button.Text =
Button.BackgroundColor3 = .(, , )
dragging =
dragInput =
dragStart =
startPosition =
(input)
delta = input.Position - dragStart
Button.Position = .(
startPosition.X.Scale,
startPosition.X.Offset + delta.X,
startPosition.Y.Scale,
startPosition.Y.Offset + delta.Y
)
Button.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPosition = Button.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
Button.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement
input.UserInputType == .UserInputType.Touch
dragInput = input
)
UserInputService.InputChanged:((input)
input == dragInput dragging
(input)
)
Button.Activated:(()
dragging
ENABLED = ENABLED
()
()
)
.(()
.()
ENABLED
()
)
()
()
About this script
Make you able to collide player if the game doesn't support collision
--========================================================--
--PLAYER COLLIDE
--DRAGABLE UI========================================================--
local
game
GetService
"Players"
local
game
GetService
"PhysicsService"
local
game
GetService
"UserInputService"
local
local
true
local
"LocalOtherPlayers"
--========================================================--
-- COLLISION GROUP
--========================================================--
pcall
function
RegisterCollisionGroup
end
pcall
function
CollisionGroupSetCollidable
true
end
pcall
function
CollisionGroupSetCollidable
"Default"
true
end
--========================================================--
-- GUI
--========================================================--
local
WaitForChild
"PlayerGui"
local
Instance
new
"ScreenGui"
"OtherPlayerCollision"
false
true
999999
local
Instance
new
"TextButton"
"CollisionToggle"
UDim2
fromOffset
165
50
UDim2
new
1
180
1
75
Color3
fromRGB
35
145
70
0
Color3
new
1
1
1
true
Enum
"PLAYER COLLISION: ON"
true
false
local
Instance
new
"UICorner"
UDim
new
0
10
--========================================================--
-- PHYSICS SETTINGS
--========================================================--
local
new
2
-- Density
1
-- Friction
0
-- Elasticity = ZERO BOUNCE
100
-- FrictionWeight
0
-- ElasticityWeight
--========================================================--
-- BODY PARTS
--========================================================--
local
"Head"
true
"Torso"
true
"UpperTorso"
true
"LowerTorso"
true
"Left Arm"
true
"Right Arm"
true
"Left Leg"
true
"Right Leg"
true
"LeftUpperArm"
true
"LeftLowerArm"
true
"LeftHand"
true
"RightUpperArm"
true
"RightLowerArm"
true
"RightHand"
true
"LeftUpperLeg"
true
"LeftLowerLeg"
true
"LeftFoot"
true
"RightUpperLeg"
true
"RightLowerLeg"
true
"RightFoot"
true
"HumanoidRootPart"
true
--========================================================--
-- SET COLLISION
--========================================================--
local
function
SetCollision
if
not
then
return
end
-- Never modify our own character
if
then
return
end
for
in
ipairs
GetDescendants
do
if
IsA
"BasePart"
then
-- Only the actual character body collides.
-- Accessories are left non-collidable to reduce
-- strange physics and bouncing.
if
then
if
then
true
true
pcall
function
end
-- Remove elastic bouncing
else
false
pcall
function
"Default"
end
end
else
-- Accessories / handles
false
end
end
end
end
--========================================================--
-- UPDATE ALL OTHER PLAYERS
--========================================================--
local
function
UpdateAllPlayers
for
in
ipairs
GetPlayers
do
if
then
if
then
SetCollision
end
end
end
end
--========================================================--
-- PLAYER SETUP
--========================================================--
local
function
SetupPlayer
if
then
return
end
Connect
function
WaitForChild
"Humanoid"
10
task
wait
0.5
SetCollision
-- Handle body parts added later
Connect
function
if
not
then
return
end
if
IsA
"BasePart"
then
task
wait
if
then
true
pcall
function
end
else
false
end
end
end
end
end
for
in
ipairs
GetPlayers
do
SetupPlayer
end
Connect
--========================================================--
-- BUTTON
--========================================================--
local
function
UpdateButton
if
then
"PLAYER COLLISION: ON"
Color3
fromRGB
35
145
70
else
"PLAYER COLLISION: OFF"
Color3
fromRGB
145
45
45
end
end
--========================================================--
-- DRAG SYSTEM
--========================================================--
local
false
local
nil
local
nil
local
nil
local
function
UpdateDrag
local
UDim2
new
end
Connect
function
if
Enum
or
Enum
then
true
Connect
function
if
Enum
then
false
end
end
end
end
Connect
function
if
Enum
or
Enum
then
end
end
Connect
function
if
and
then
UpdateDrag
end
end
--========================================================--
-- TOGGLE
--========================================================--
Connect
function
if
then
return
end
not
UpdateButton
UpdateAllPlayers
end
--========================================================--
-- KEEP COLLISION ACTIVE
--========================================================--
task
spawn
function
while
task
wait
0.5
do
if
then
UpdateAllPlayers
end
end
end
--========================================================--
-- START
--========================================================--
UpdateButton
UpdateAllPlayers
Soggyware 60 PLUS Games
Universal