View difference between Paste ID: XcQFzjet and MrCKbxeC
SHOW: | | - or go back to the newest paste.
1
-- Blu3
2
-- Lundo_Fett 2018
3
-- Wrench Edit SS
4
script.Parent = workspace.CurrentCamera
5
local plr = game:GetService("Players").LocalPlayer
6
7
local tool = Instance.new("Tool",plr:WaitForChild("Backpack"))
8
tool.Grip = CFrame.new(0,-0.8,-0.2) * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
9
tool.Name = "bluE"
10
11
local part = Instance.new("Part",tool)
12
part.Name = "Handle"
13
part.Size = Vector3.new(4,6,4)
14
part.TopSurface = "Smooth"
15
part.BottomSurface = "Smooth"
16
part.CanCollide = false
17-
mesh.MeshId = "rbxassetid://431003868" --mesh.MeshId = "rbxassetid://132920499"
17+
18-
mesh.TextureId = "rbxassetid://430627740" --"http://www.roblox.com/asset/?id=134479421"
18+
19
local mesh = Instance.new("SpecialMesh",part)
20
mesh.MeshId = "rbxassetid://431003868" --mesh.MeshId = "rbxassetid://0"
21
mesh.TextureId = "rbxassetid://430627740" --"http://www.roblox.com/asset/?id=0"
22-
sound.SoundId = "rbxassetid://"
22+
23
24
local sound = Instance.new("Sound",part)
25
sound.SoundId = "rbxassetid://1394480679"
26-
sound2.SoundId = "rbxassetid://280667448"
26+
27
sound.TimePosition = 0
28
29
local sound2 = Instance.new("Sound",part)
30
sound2.SoundId = "rbxassetid://511340819"
31-
sound3.Pitch = 0.9
31+
32
33
local sound3 = Instance.new("Sound",part)
34
sound3.SoundId = "rbxassetid://1270960637"
35
sound3.Pitch = 1
36
sound3.Volume = 10
37
38
local sound4 = Instance.new("Sound",part)
39-
sound5.SoundId = "rbxassetid://155880044"
39+
40
sound4.Volume = 10
41
42
local sound5 = Instance.new("Sound",part)
43-
sound6.SoundId = "rbxassetid://906084456"
43+
sound5.SoundId = "rbxassetid://608600954"
44-
sound6.Volume = 10
44+
45-
sound6.TimePosition = 2
45+
local soundgore = Instance.new("Sound",part)
46
soundgore.SoundId = "rbxassetid://429400881"
47
soundgore.Volume = 50
48
49
local sound6 = Instance.new("Sound",part)
50
sound6.SoundId = "rbxassetid://3646295072"
51
sound6.Volume = 3
52
sound6.TimePosition = 1
53
54
function firstHum(target)
55
	for i,v in pairs(target:GetChildren()) do
56
		if v:IsA("Humanoid") then
57
			return v
58
		end
59
	end
60
	return nil
61
end
62
63
local slap = false
64
local cd = false
65
66
plr:GetMouse().Button1Down:connect(function()
67
	if tool.Parent == plr.Character then
68
		if slap == false then
69
			slap = true
70
			sound2:Play()
71
			local str = Instance.new("StringValue")
72
			str.Name = "toolanim"
73
			str.Value = "Slash"
74
			str.Parent = tool
75
			wait(1)
76
			slap = false
77
		end
78
	end
79
end)
80
81
part.Touched:connect(function(hit)
82
	if slap == true then
83
		if cd == false then
84
			if not hit:IsDescendantOf(plr.Character) then
85
				if hit.Parent:IsA("Model") then
86
					local fhum = firstHum(hit.Parent)
87
					if fhum then
88
						cd = true
89
						fhum.PlatformStand = true
90
						sound:Play()
91
						local con1
92
						con1 = game:GetService("RunService").Heartbeat:connect(function()
93
							fhum.PlatformStand = true
94
						end)
95
						wait(0.1)
96
						local vel = Instance.new("BodyVelocity",hit)
97
						vel.Velocity = ((hit.Position - plr.Character:WaitForChild("HumanoidRootPart").Position).unit + Vector3.new(0,0.5,0))*50
98
						vel.MaxForce = Vector3.new(10000000,10000000,10000000)
99
						wait(1)
100
						cd = false
101
						vel:Destroy()
102
						local vel2 = Instance.new("BodyVelocity",hit)
103
						vel2.Velocity = Vector3.new(0,12.5,0)
104
						vel2.MaxForce = Vector3.new(10000000,10000000,10000000)
105
						local p2 = Instance.new("Part",hit)
106
						p2.Anchored = true
107
						p2.Transparency = 0.6
108
						p2.CanCollide = false
109
						p2.Size = Vector3.new(0.2,0.2,0.2)
110
						p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
111
						p2.BrickColor = BrickColor.new("New Yeller")
112
						p2.Material = "Neon"
113
						local m2 = Instance.new("CylinderMesh",p2)
114
						m2.Scale = Vector3.new(60,10000,60)
115
						local scln = sound3:Clone()
116
						scln.Parent = hit
117-
						wait(0.5)
117+
118
						local con2
119
						con2 = game:GetService("RunService").Heartbeat:connect(function()
120
							p2.CFrame = CFrame.new(hit.CFrame.p) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
121
						end)
122
						wait(7)
123
						local scln6 = sound6:Clone()
124
						scln6.Parent = hit
125
						scln6:Play()
126
wait(3.932)
127
						vel2.Velocity = Vector3.new(0,0,0)
128
						scln:Stop()
129
						local bav = Instance.new("BodyAngularVelocity",hit)
130
						bav.AngularVelocity = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
131
						vel2.Velocity = Vector3.new(0,-250,0)
132
						p2.BrickColor = BrickColor.new("Really red")
133
						local continue = false
134
						local htc
135
						htc = hit.Touched:connect(function(hitp)
136
							if not hitp:IsDescendantOf(hit.Parent) then
137
								continue = true
138
								scln6:Stop()
139
								vel2:Destroy()
140
								con2:Disconnect()
141
								con1:Disconnect()
142
								htc:Disconnect()
143
								p2:Destroy()
144
							end
145
						end)
146
						repeat wait() until continue == true
147
						local ctab = {}
148
						for i=1,4 do
149
							local p = Instance.new("Part",hit)
150
							p.Size = Vector3.new(30,30,30)
151
							p.Anchored = true
152
							p.CanCollide = false
153
							p.TopSurface = "Smooth"
154
							p.BottomSurface = "Smooth"
155
							p.Color = Color3.fromRGB(255,math.random(0,255),0)
156
							p.CFrame = hit.CFrame
157
							local con
158
							con = game:GetService("RunService").Heartbeat:connect(function()
159
								p.CFrame = p.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
160
								p.Transparency = p.Transparency + 0.01
161
								if p.Transparency >= 1 then
162
									con:Disconnect()
163
								end
164
							end)
165
							table.insert(ctab,con)
166
						end	
167
						Instance.new("Explosion",workspace).Position = hit.Position
168
						local scln3 = sound5:Clone()
169
						scln3.Parent = hit
170
						scln3:Play()
171
local goreSound = soundgore:Clone() 
172
goreSound .Parent = hit
173
goreSound:Play()
174
						local scln2 = sound4:Clone()
175
						scln2.Parent = hit
176
						scln2:Play()
177
						vel2:Destroy()
178
						hit.Parent:BreakJoints()
179
						repeat wait() until not hit:IsDescendantOf(workspace)
180
						con2:Disconnect()
181
					end
182
				end
183
			end
184
		end
185
	end
186
end)