View difference between Paste ID: AvJDbn8E and 6jiHBadb
SHOW: | | - or go back to the newest paste.
1
plr = owner
2
part = nil
3
bp = nil
4
particles = nil
5
-----
6
local char = plr.Character
7
local hum = char:FindFirstChildOfClass'Humanoid'
8
local hed = char.Head
9
local tors = char.Torso
10
local ra = char["Right Arm"]
11
local la = char["Left Arm"]
12
local rl = char["Right Leg"]
13
local ll = char["Left Leg"]
14
local neck = tors["Neck"]
15
--
16
local Player = plr
17
local UIS = game:GetService("UserInputService")
18
local Character = Player.Character
19
local Human = Character.Humanoid
20
local RunService = game:GetService("RunService")
21
local Torso = Character.Torso
22
local Head = Torso.Neck
23
local LeftArm = Torso["Left Shoulder"]
24
local RightArm = Torso["Right Shoulder"]
25
local LeftLeg = Torso["Left Hip"]
26
local RightLeg = Torso["Right Hip"]
27
local RootPart = Character.HumanoidRootPart
28
local RootJoint = RootPart["RootJoint"]
29
--local mouse = plr:GetMouse()
30
hed.face.Transparency = 0
31
hed.face.Texture = "rbxassetid://2899280529"
32
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
33
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
34
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
35
local maincolor = BrickColor.new("Institutional white")
36
cam = game.Workspace.CurrentCamera
37
CF = CFrame.new
38
angles = CFrame.Angles
39
attack = false
40
Euler = CFrame.fromEulerAnglesXYZ
41
Rad = math.rad
42
IT = Instance.new
43
BrickC = BrickColor.new
44
Cos = math.cos
45
Acos = math.acos
46
Sin = math.sin
47
Asin = math.asin
48
Abs = math.abs
49
Mrandom = math.random
50
Floor = math.floor
51
--script hair
52
--Character.Head.BrickColor=BrickColor.new("Institutional white")
53
--Torso.BrickColor=BrickColor.new("Institutional white")
54-
Character["Right Arm"].BrickColor=BrickColor.new("Institutional white")
54+
--Character["Right Arm"].BrickColor=BrickColor.new("Institutional white")
55-
Character["Left Arm"].BrickColor=BrickColor.new("Institutional white")
55+
--Character["Left Arm"].BrickColor=BrickColor.new("Institutional white")
56-
Character["Left Leg"].BrickColor=BrickColor.new("Institutional white")
56+
--Character["Left Leg"].BrickColor=BrickColor.new("Institutional white")
57-
Character["Right Leg"].BrickColor=BrickColor.new("Institutional white")
57+
--Character["Right Leg"].BrickColor=BrickColor.new("Institutional white")
58
if char:FindFirstChildOfClass("Accessory") ~= nil then
59
repeat
60
wait(1/60)
61
char:FindFirstChildOfClass("Accessory"):Destroy()
62
until char:FindFirstChildOfClass("Accessory") == nil
63
end
64
if char:FindFirstChildOfClass("CharacterMesh").Name ~= "mesh" then
65
repeat
66
wait(1/60)
67
char:FindFirstChildOfClass("CharacterMesh"):Destroy()
68
until char:FindFirstChildOfClass("CharacterMesh") == nil
69
end
70
Charmesh = Instance.new("CharacterMesh",char)
71
Charmesh.MeshId = 48112070
72
Charmesh.Name = "mesh"
73
Charmesh.BodyPart = "Torso"
74
char:FindFirstChildOfClass("Pants").PantsTemplate = "rbxassetid://318843846"
75
char:FindFirstChildOfClass("Shirt").ShirtTemplate = "rbxassetid://1857656733"
76
HSHair = IT("Model")
77
HSHair.Parent = char
78
HSHair.Name = "HSHair"
79
RHe = IT("Part")
80
RHe.Parent = HSHair
81
RHe.BrickColor = BrickColor.new("Institutional white")
82
RHe.Locked = true
83
RHe.CanCollide = false
84
RHe.Transparency = 0
85
PMesh = IT("SpecialMesh")
86
RHe.formFactor =  "Symmetric"
87
PMesh.MeshType = "FileMesh"
88
PMesh.MeshId = "rbxassetid://731023666"
89
PMesh.Scale = Vector3.new(0.200000003, 0.200000003, 0.170000002)
90
PMesh.Parent = RHe
91
local RWeld = IT("Weld")
92
RWeld.Parent = RHe
93
RWeld.Part0 = RHe
94
RWeld.Part1 = hed
95
RWeld.C0 = CF(0, 2.5, 1) * angles(0, Rad(180), 0)
96
HS = IT("Model")
97
HS.Parent = char
98
HS.Name = "HS"
99
Rs = IT("Part")
100
Rs.Parent = HS
101
Rs.BrickColor = BrickColor.new("Really black")
102
Rs.Locked = true
103
Rs.CanCollide = false
104
Rs.Transparency = 0
105
PMesh = IT("SpecialMesh")
106
Rs.formFactor =  "Symmetric"
107
PMesh.MeshType = "FileMesh"
108
PMesh.MeshId = "rbxassetid://2899230948"
109
PMesh.Scale = Vector3.new(0.035, 0.076, 0.035)
110
PMesh.Offset = Vector3.new(0, 3.9, 1)
111
PMesh.Parent = Rs
112
local RWeldS = IT("Weld")
113
RWeldS.Parent = Rs
114
RWeldS.Part0 = Rs
115
RWeldS.Part1 = hed
116
RWeldS.C0 = CF(0, 2.5, 1) * angles(0, Rad(180), 0)
117
-- Script by fusionfriends
118-
speed = 0.5
118+
--speed = 0.5
119-
Human.WalkSpeed = 30
119+
--Human.WalkSpeed = 30
120-
Character:WaitForChild("Animate"):Remove()
120+
--Character:WaitForChild("Animate"):Remove()
121-
Character.Humanoid:ClearAllChildren()
121+
--Character.Humanoid:ClearAllChildren()
122-
Running = false
122+
--Running = false
123-
Idle = false
123+
--Idle = false
124-
Falling = false
124+
--Falling = false
125-
a = true
125+
--a = true
126
127-
while true do
127+
--while true do
128-
	wait()
128+
--	wait()
129-
	if Human:GetState() == Enum.HumanoidStateType.Freefall then
129+
--	if Human:GetState() == Enum.HumanoidStateType.Freefall then
130-
		Falling = true
130+
--		Falling = true
131-
		LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1.2,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(350)),speed)
131+
--		LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1.2,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(350)),speed)
132-
		RightArm.C0 = RightArm.C0:Lerp(CFrame.new(1.2,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)),speed)
132+
--		RightArm.C0 = RightArm.C0:Lerp(CFrame.new(1.2,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)),speed)
133
--			LeftLeg.C0 = LeftLeg.C0:Lerp(CFrame.new(-.5,-.7,0.5)*CFrame.Angles(math.rad(355),math.rad(0),math.rad(0)),speed)
134-
			LeftLeg.C0 = LeftLeg.C0:Lerp(CFrame.new(-.5,-.5,0)*CFrame.Angles(math.rad(340),math.rad(0),math.rad(0)),speed)
134+
--			LeftLeg.C0 = LeftLeg.C0:Lerp(CFrame.new(-.5,-.5,0)*CFrame.Angles(math.rad(340),math.rad(0),math.rad(0)),speed)
135-
			RightLeg.C0 = RightLeg.C0:Lerp(CFrame.new(.5,-.7,0.5)*CFrame.Angles(math.rad(355),math.rad(0),math.rad(0)),speed)
135+
--			RightLeg.C0 = RightLeg.C0:Lerp(CFrame.new(.5,-.7,0.5)*CFrame.Angles(math.rad(355),math.rad(0),math.rad(0)),speed)
136
--			RightLeg.C0 = RightLeg.C0:Lerp(CFrame.new(.5,-.5,0)*CFrame.Angles(math.rad(340),math.rad(0),math.rad(0)),speed)
137-
		RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(630),math.rad(0),math.rad(180)),speed)
137+
--		RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(630),math.rad(0),math.rad(180)),speed)
138-
	else
138+
--	else
139-
		Falling = false
139+
--		Falling = false
140-
	end	
140+
--	end	
141-
	local Velocity = RootPart.Velocity.Magnitude
141+
--	local Velocity = RootPart.Velocity.Magnitude
142-
	if Velocity > 0.01 then
142+
--	if Velocity > 0.01 then
143-
		if not Falling then
143+
--		if not Falling then
144-
			Running = true
144+
--			Running = true
145-
			Idle = false
145+
--			Idle = false
146-
			LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1.3,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(350)),speed)
146+
--			LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1.3,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(350)),speed)
147-
			RightArm.C0 = RightArm.C0:Lerp(CFrame.new(1.3,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)),speed)
147+
--			RightArm.C0 = RightArm.C0:Lerp(CFrame.new(1.3,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)),speed)
148
--			LeftLeg.C0 = LeftLeg.C0:Lerp(CFrame.new(-.5,-.7,0.5)*CFrame.Angles(math.rad(355),math.rad(0),math.rad(0)),speed)
149-
			LeftLeg.C0 = LeftLeg.C0:Lerp(CFrame.new(-.5,-.5,0)*CFrame.Angles(math.rad(340),math.rad(0),math.rad(0)),speed)
149+
--			LeftLeg.C0 = LeftLeg.C0:Lerp(CFrame.new(-.5,-.5,0)*CFrame.Angles(math.rad(340),math.rad(0),math.rad(0)),speed)
150-
			RightLeg.C0 = RightLeg.C0:Lerp(CFrame.new(.5,-.7,0.5)*CFrame.Angles(math.rad(355),math.rad(0),math.rad(0)),speed)
150+
--			RightLeg.C0 = RightLeg.C0:Lerp(CFrame.new(.5,-.7,0.5)*CFrame.Angles(math.rad(355),math.rad(0),math.rad(0)),speed)
151
--			RightLeg.C0 = RightLeg.C0:Lerp(CFrame.new(.5,-.5,0)*CFrame.Angles(math.rad(340),math.rad(0),math.rad(0)),speed)
152-
			RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(610),math.rad(0),math.rad(180)),speed)
152+
--			RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(0,1,0)*CFrame.Angles(math.rad(610),math.rad(0),math.rad(180)),speed)
153-
		else
153+
--		else
154-
			Running = false
154+
--			Running = false
155-
		end
155+
--		end
156-
	elseif Velocity < 0.01 then
156+
--	elseif Velocity < 0.01 then
157-
		if not Falling then
157+
--		if not Falling then
158-
			Idle = true
158+
--			Idle = true
159-
			Running = false
159+
--			Running = false
160-
			--LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1.3,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(340)),speed)
160+
--			LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1.3,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(340)),speed)
161-
		--	RightArm.C0 = RightArm.C0:Lerp(CFrame.new(1.3,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)),speed)
161+
--			RightArm.C0 = RightArm.C0:Lerp(CFrame.new(1.3,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)),speed)
162-
		--	LeftLeg.C0 = LeftLeg.C0:lerp(CFrame.new(-.5,-.8,0.5)*CFrame.Angles(math.rad(340),math.rad(0),math.rad(0)),speed)
162+
--			LeftLeg.C0 = LeftLeg.C0:lerp(CFrame.new(-.5,-.8,0.5)*CFrame.Angles(math.rad(340),math.rad(0),math.rad(0)),speed)
163-
		--	RightLeg.C0 = RightLeg.C0:lerp(CFrame.new(.5,-1.1,0.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),speed)
163+
--			RightLeg.C0 = RightLeg.C0:lerp(CFrame.new(.5,-1.1,0.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),speed)
164-
		--	RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(0,0,0)*CFrame.Angles(math.rad(630),math.rad(0),math.rad(180)),speed)
164+
--			RootJoint.C0 = RootJoint.C0:Lerp(CFrame.new(0,0,0)*CFrame.Angles(math.rad(630),math.rad(0),math.rad(180)),speed)
165-
			LeftArm.C0 = LeftArm.C0:lerp(CFrame.new(-1.3,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(350)),speed)
165+
--		else
166-
			RightArm.C0 = RightArm.C0:Lerp(CFrame.new(1.3,.5,-.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)),speed)
166+
--			Idle = false
167
--		end
168-
			LeftLeg.C0 = LeftLeg.C0:Lerp(CFrame.new(-.5,-.5,0)*CFrame.Angles(math.rad(340),math.rad(0),math.rad(0)),speed)
168+
--	end
169-
			RightLeg.C0 = RightLeg.C0:Lerp(CFrame.new(.5,-.7,0.5)*CFrame.Angles(math.rad(355),math.rad(0),math.rad(0)),speed)
169+
--end