View difference between Paste ID: Vi8qM54V and gzgayvmT
SHOW: | | - or go back to the newest paste.
1
NLS([[ -- thank rufus for head look and stuf
2
owner = game:GetService("Players").LocalPlayer
3
owner.Character:WaitForChild("Head")
4
mouse = owner:GetMouse()
5
local remote = owner.Character:WaitForChild("lookremote")
6-
local remote2 = owner.Character:WaitForChild("crouch remote")
6+
local remote2 = owner.Character:WaitForChild("lookremote2")
7
local part = Instance.new("Part", owner.Character.Head)
8
part.Size = Vector3.new(0.1,0.1,0.1)
9
part.Transparency = 1
10
part.CanCollide = false
11
part.Name = "camera"
12
part:BreakJoints()
13
local weld = Instance.new("Weld", part)
14
weld.Part0 = owner.Character.Head
15
weld.Part1 = part
16
weld.C0 = CFrame.new(0,0,-1)
17-
count = 0
17+
18-
function crouchinglol(key)
18+
19-
    key = key:lower()
19+
20-
    if key:byte() == 48 then
20+
21-
count = count + 1
21+
22-
if count == 1 then
22+
23-
        owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed = 8
23+
24-
remote2:FireServer("Crouching")
24+
25-
elseif count == 2 then
25+
26-
        owner.Character:findFirstChildOfClass("Humanoid").WalkSpeed = 16
26+
27-
remote2:FireServer("NotCrouching")
27+
28-
wait()
28+
29-
count = 0
29+
30
        if owner.Character.Head:findFirstChildOfClass("Decal") then
31
            owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 1
32
        end
33-
mouse.KeyDown:connect(crouchinglol)
33+
34-
34+
35-
local E = owner.Character:WaitForChild("The")
35+
36
        for i,v in pairs(owner.Character:GetChildren()) do
37-
   E:FireServer("s")
37+
38
                v.Handle.Transparency = 0
39-
39+
40
        end
41
        workspace.CurrentCamera.FieldOfView = 70
42
        owner.Character.Head.Transparency = 0
43
        if owner.Character.Head:findFirstChildOfClass("Decal") then
44
            owner.Character.Head:findFirstChildOfClass("Decal").Transparency = 0
45
        end
46
        workspace.CurrentCamera.CameraSubject = owner.Character
47
    end
48
end
49
mouse.Button1Down:Connect(function()
50
remote2:FireServer()
51
end)
52
]], owner.Character)
53
local remote = Instance.new("RemoteEvent", owner.Character)
54
remote.Name = "lookremote"
55
local remote2 = Instance.new("RemoteEvent", owner.Character)
56
remote2.Name = "lookremote2"
57
local headd = Instance.new("Weld", owner.Character.Torso)
58
headd.Part0 = owner.Character.Torso
59
headd.Part1 = owner.Character.Head
60
headd.C0 = CFrame.new(0,1,0)
61
headd.Name = "HeaddWeld"
62
local armm = Instance.new("Weld", owner.Character.Torso)
63
armm.Part0 = owner.Character.Torso
64
armm.Part1 = owner.Character["Right Arm"]
65
armm.C0 = CFrame.new(2,2,-1)
66
armm.Name = "armmWeld"
67
function look(plr, where, origin, cameracf)
68
    if plr == owner then
69
        local lookvector = owner.Character.Torso.CFrame:toObjectSpace(cameracf).lookVector.unit
70
        headd.C0 = CFrame.new(0,1,0) * CFrame.Angles(lookvector.y,0,0)
71
        headd.C0 = headd.C0 * CFrame.Angles(0,-lookvector.x,0)
72
        headd.C0 = headd.C0 * CFrame.new(0,0.5,0)
73-
function isplatformstand(PC)
73+
        armm.C0 = CFrame.new(1.75,1,-0.75) * CFrame.Angles(lookvector.y,0,0) * CFrame.Angles(math.rad(90),0,0)
74-
coroutine.wrap(function()
74+
75-
PC.Character.Humanoid.PlatformStand = true
75+
76-
wait(3)
76+
77-
	for i,v in pairs(PC.Character:GetDescendants()) do
77+
78-
		if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
78+
79-
v.Enabled = true
79+
function welding()
80
owner.Character["Right Arm"].Touched:Connect(function(part)
81
if part ~= owner.Character:GetDescendants() then
82-
PC.Character.Humanoid.PlatformStand = false
82+
local weld = Instance.new("WeldConstraint",owner.Character["Right Arm"])
83-
end)()
83+
weld.Part0 = part
84
weld.Part1 = owner.Character["Right Arm"]
85-
local debris = game:GetService("Debris")
85+
86-
function killfunction(part)
86+
87-
			local Model = part:FindFirstAncestorOfClass("Model")
87+
88-
			if Model then
88+
remote2.OnServerEvent:connect(welding)