View difference between Paste ID: 75E53qQP and RS99jvJp
SHOW: | | - or go back to the newest paste.
1
Player = game:GetService("Players").LocalPlayer
2
Character = Player.Character 
3
PlayerGui = Player.PlayerGui 
4
Backpack = Player.Backpack 
5
Torso = Character.Torso 
6
Head = Character.Head 
7
Humanoid = Character.Humanoid
8
LeftArm = Character["Left Arm"] 
9
LeftLeg = Character["Left Leg"] 
10
RightArm = Character["Right Arm"] 
11
RightLeg = Character["Right Leg"] 
12
LS = Torso["Left Shoulder"] 
13
LH = Torso["Left Hip"] 
14
RS = Torso["Right Shoulder"] 
15
RH = Torso["Right Hip"] 
16
Neck = Torso.Neck
17
it=Instance.new
18
vt=Vector3.new
19
cf=CFrame.new
20
euler=CFrame.fromEulerAnglesXYZ
21
angles=CFrame.Angles
22
 
23
function swait(num)
24
if num==0 or num==nil then
25
game:service'RunService'.RenderStepped:wait()
26
else
27
for i=0,num do
28
game:service'RunService'.RenderStepped:wait()
29
end
30
end
31
end
32
 
33
if Character:findFirstChild("SwordBall",true) ~= nil then 
34
Character:findFirstChild("SwordBall",true).Parent = nil 
35
end 
36
 
37
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
38
local fp = it("Part")
39
fp.formFactor = formfactor 
40
fp.Parent = parent
41
fp.Reflectance = reflectance
42
fp.Transparency = transparency
43
fp.CanCollide = false 
44
fp.Locked=true
45
fp.BrickColor = brickcolor
46
fp.Name = name
47
fp.Size = size
48
fp.Position = Torso.Position 
49
fp.BottomSurface="Smooth"
50
fp.TopSurface="Smooth"
51
fp:BreakJoints()
52
return fp 
53
end 
54
 
55
function mesh(Mesh,part,meshtype,meshid,offset,scale)
56
local mesh = it(Mesh) 
57
mesh.Parent = part
58
if Mesh=="SpecialMesh" then
59
mesh.MeshType = meshtype
60
mesh.MeshId = meshid
61
end
62
mesh.Offset=offset
63
mesh.Scale=scale
64
return mesh
65
end
66
 
67
function weld(parent,part0,part1,c0)
68
local weld = it("Weld") 
69
weld.Parent = parent
70
weld.Part0 = part0 
71
weld.Part1 = part1 
72
weld.C0 = c0
73
return weld
74
end
75
 
76
showDamage=function(Char,Dealt,du,Color)
77
        m=Instance.new("Model")
78
        m.Name=tostring(Dealt)
79
        h=Instance.new("Humanoid")
80
        h.Health=0
81
        h.MaxHealth=0
82
        h.Parent=m
83
        c=Instance.new("Part")
84
        c.Transparency=0
85
        c.BrickColor=Color
86
        c.Name="Head"
87
        c.TopSurface=0
88
        c.BottomSurface=0
89
        c.formFactor="Plate"
90
        c.Size=Vector3.new(1,.4,1)
91
        ms=Instance.new("CylinderMesh")
92
        ms.Scale=Vector3.new(.8,.8,.8)
93
        if CRIT==true then
94
                ms.Scale=Vector3.new(1,1.25,1)
95
        end
96
        ms.Parent=c
97
        c.Reflectance=0
98
        Instance.new("BodyGyro").Parent=c
99
        c.Parent=m
100
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
101
        f=Instance.new("BodyPosition")
102
        f.P=2000
103
        f.D=100
104
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
105
        f.position=c.Position+Vector3.new(0,3,0)
106
        f.Parent=c
107
        game:GetService("Debris"):AddItem(m,.5+du)
108
        c.CanCollide=false
109
        m.Parent=workspace
110
        c.CanCollide=false
111
end
112
 
113-
local swordball=Instance.new("Model") 
113+
 local swordball=Instance.new("Model")
114-
swordball.Parent=Character 
114+
swordball.Parent=Character
115-
swordball.Name="SwordBall" 
115+
swordball.Name="SwordBall"
116
local proppart=part(1,swordball,0,1,BrickColor.new("Black"),"Derp",vt(1,1,1))
117-
local sou=Instance.new("Sound")
117+
118-
sou.Parent=proppart
118+
119-
sou.Volume=1
119+
120-
sou.Pitch=1
120+
121-
sou.SoundId="http://www.roblox.com/asset/?id=168589016"
121+
122-
sou.Looped=true
122+
123-
--sou:play() 
123+
124
 
125
local wld2=weld(prt2,prt2,prt1,cf(0,0,0)*euler(0,0,0))
126
coroutine.resume(coroutine.create(function(Weld,Part) 
127
derp=0
128
while Part.Parent~=nil do
129
swait()
130
wld2.C0=euler(0,derp,0)
131
derp=derp+0.1
132
end
133
end),wld2,prt2)
134
 
135
numb=0
136
numb2=0
137
for i=1,8 do
138
for i=1,8 do
139
local prt3=part(3,swordball,0,0,BrickColor:Random(),"Sword",vt(1,1,1))
140
local msh3=mesh("SpecialMesh",prt3,"FileMesh","http://www.roblox.com/asset/?id=1029523",vt(0,0,0),vt(0.05,0.05,0.05))
141
--http://www.roblox.com/asset/?id=1029523
142
local wld3=weld(prt3,prt3,prt2,cf(0,0,2.5)*euler(numb,numb2,numb2))
143
numb=numb+0.785
144
end
145
numb2=numb2+0.785
146
end
147
 
148
prop=Instance.new("RocketPropulsion")
149
prop.MaxSpeed=5000
150
prop.CartoonFactor=0
151
prop.MaxThrust=100000
152
prop.Parent=prt2
153
prop.Target=proppart
154
prop.ThrustD=1.5
155
prop.TurnD=0
156
prop.TurnP=0
157
prop:Fire()
158
 
159
--[[velp=Instance.new("BodyGyro") 
160
velp.Parent=prt1
161
velp.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge 
162
velp.P=20e+003 
163
velp.cframe=cf(0,0,0)
164
coroutine.resume(coroutine.create(function(Velo,Part) 
165
while Part.Parent~=nil do
166
for i=0,1,0.1 do
167
swait()
168
Velo.cframe=Velo.cframe*euler(0,3.14*i,0)
169
end
170
end
171
end),velp,sprt)]]
172
--[[wait(5)
173
wait()  ]]
174
while true do
175
swait(200)
176
for d=1,1 do
177
for _,c in pairs(workspace:children()) do
178
local hum=c:findFirstChild("Humanoid")
179
if hum~=nil then
180-
local sou=Instance.new("Sound")
180+
181-
sou.Parent=prt1
181+
182-
sou.Volume=1
182+
183-
sou.Pitch=1
183+
184-
sou.SoundId="rbxasset://sounds\\unsheath.wav"
184+
185-
sou.Looped=true
185+
186-
wait() 
186+
187-
sou:play() ]]
187+
188
local swld=weld(sprt2,sprt2,sprt,euler(0,0,0))
189
local teh=0
190
game:GetService("Debris"):AddItem(sprt,20)
191
game:GetService("Debris"):AddItem(sprt2,20)
192
coroutine.resume(coroutine.create(function(Weld,Part) 
193
numb1=0
194
while Part.Parent~=nil do
195
swait()
196
Part.BrickColor=BrickColor:Random()
197
Weld.C0=Weld.C0*angles(0,numb1,0)
198
numb1=math.pi/math.random(10,20)
199
end
200
end),swld,sprt2)
201
sprt.CFrame=prt1.CFrame
202
sprt.Velocity=vt(-math.random(20,50),math.random(20,50),-math.random(20,50))
203
--[[if d==1 then
204
sprt.Velocity=vt(math.random(50,200),math.random(20,50),0)
205
elseif d==2 then
206
sprt.Velocity=vt(-math.random(50,200),math.random(20,50),0)
207
elseif d==3 then
208
sprt.Velocity=vt(0,math.random(20,50),math.random(50,200))
209
elseif d==4 then
210
sprt.Velocity=vt(0,math.random(20,50),-math.random(50,200))
211
end]]
212
prop=Instance.new("RocketPropulsion")
213
prop.MaxSpeed=50000
214
prop.CartoonFactor=0
215
prop.MaxThrust=100000
216
prop.Parent=sprt
217
prop.Target=head
218
--[[prop.TurnD=0
219
prop.TurnP=100]]
220
prop:Fire()
221
end
222
end
223
end
224
end
225
end
226-
local sou=Instance.new("Sound")
226+