-
Notifications
You must be signed in to change notification settings - Fork 0
/
bigpaintball2.lua
25 lines (22 loc) · 982 Bytes
/
bigpaintball2.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
while task.wait(1) do
local localPlayer = game.Players.LocalPlayer
local localCharacter = localPlayer.Character
local localTeam = localPlayer.Team
if localCharacter and localCharacter:FindFirstChild("HumanoidRootPart") then
local localCFrame = localCharacter.HumanoidRootPart.CFrame
local offset = localCFrame.LookVector * 5
for _, player in pairs(game.Players:GetPlayers()) do
if player ~= localPlayer and player.Team ~= localTeam then
local character = player.Character
if character and character:FindFirstChild("HumanoidRootPart") then
character:SetPrimaryPartCFrame(localCFrame + offset)
for _, part in pairs(character:GetChildren()) do
if part:IsA("BasePart") then
part.Anchored = true
end
end
end
end
end
end
end