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