forked from HIGHW4Y/RuzzIsCool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dh flashbang.lua
44 lines (37 loc) · 1.19 KB
/
dh flashbang.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
local Plr = game.Players.LocalPlayer
Plr.Character.Humanoid:UnequipTools()
wait(0.1)
Plr.Character.Humanoid:EquipTool(Plr.Backpack.Combat)
wait(0.1)
local Hand = Plr.Character.RightHand
local HRPPosition = Plr.Character.HumanoidRootPart.CFrame
local HandPosition = Hand.Position
local HandCFrame = Hand.CFrame
local Run = true
if Hand:FindFirstChild("RightWrist") then
Hand.RightWrist:Destroy()
end
spawn(function()
while Run do
wait()
Plr.Character.Combat:Activate()
wait(3)
Plr.Character.Combat:Deactivate()
end
end)
wait(1)
repeat wait()
Hand.CFrame = CFrame.new(math.random(-5000,5000), math.random(-400, 600), math.random(-5000, 5000))
until game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.V)
run = false
Plr.Character.HumanoidRootPart.CFrame = HRPPosition
wait()
Hand.Position = HandPosition
Hand.CFrame = HandCFrame
wait(0.1)
local RightWrist = Instance.new("Weld", Hand)
RightWrist.Part0 = Hand
RightWrist.Part1 = Plr.Character.RightLowerArm
RightWrist.C0 = CFrame.new(0.0682975054, -0.450790346, -0.204141855, 1, 0, 0, 0, 1, 0, 0, 0, 1)
RightWrist.C1 = CFrame.new(-0.0443148613, 0.233287811, 0.124126196, 1, 0, 0, 0, 1, 0, 0, 0, 1)
RightWrist.Name = ("RightWrist")