View difference between Paste ID: N4qTSW45 and dD84V34T
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
    print("FE Compatibility code by Mokiros")
6
    local rp = RealPlayer
7
    script.Parent = rp.Character
8
   
9
    --RemoteEvent for communicating
10
    local Event = Instance.new("RemoteEvent")
11
    Event.Name = "UserInput_Event"
12
 
13
    --Fake event to make stuff like Mouse.KeyDown work
14
    local function fakeEvent()
15
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
        t.connect = t.Connect
17
        return t
18
    end
19
 
20
    --Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
22
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
    end}
26
    --Merged 2 functions into one by checking amount of arguments
27
    CAS.UnbindAction = CAS.BindAction
28
 
29
    --This function will trigger the events that have been :Connect()'ed
30
    local function te(self,ev,...)
31
        local t = m[ev]
32
        if t and t._fakeEvent then
33
            for _,f in pairs(t.Functions) do
34
                f(...)
35
            end
36
        end
37
    end
38
    m.TrigEvent = te
39
    UIS.TrigEvent = te
40
 
41
    Event.OnServerEvent:Connect(function(plr,io)
42
        if plr~=rp then return end
43
        m.Target = io.Target
44
        m.Hit = io.Hit
45
        if not io.isMouse then
46
            local b = io.UserInputState == Enum.UserInputState.Begin
47
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
            end
50
            if io.UserInputType == Enum.UserInputType.MouseButton2 then
51
                return m:TrigEvent(b and "Button2Down" or "Button2Up")
52
            end
53
            for _,t in pairs(CAS.Actions) do
54
                for _,k in pairs(t.Keys) do
55
                    if k==io.KeyCode then
56
                        t.Function(t.Name,io.UserInputState,io)
57
                    end
58
                end
59
            end
60
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
61
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
62
        end
63
    end)
64
    Event.Parent = NLS([==[
65
    local Player = game:GetService("Players").LocalPlayer
66
    local Event = script:WaitForChild("UserInput_Event")
67
    local Mouse = Player:GetMouse()
68
    local UIS = game:GetService("UserInputService")
69
    local input = function(io,a)
70
        if a then return end
71
        --Since InputObject is a client-side instance, we create and pass table instead
72
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
73
    end
74
    UIS.InputBegan:Connect(input)
75
    UIS.InputEnded:Connect(input)
76
    local h,t
77
    --Give the server mouse data 30 times every second, but only if the values changed
78
    --If player is not moving their mouse, client won't fire events
79
    while wait(1/30) do
80
        if h~=Mouse.Hit or t~=Mouse.Target then
81
            h,t=Mouse.Hit,Mouse.Target
82
            Event:FireServer({isMouse=true,Target=t,Hit=h})
83
        end
84
    end]==],Player.Character)
85
 
86
    ----Sandboxed game object that allows the usage of client-side methods and services
87
    --Real game object
88
    local _rg = game
89
 
90
    --Metatable for fake service
91
    local fsmt = {
92
        __index = function(self,k)
93
            local s = rawget(self,"_RealService")
94
            if s then
95
                return typeof(s[k])=="function"
96
                and function(_,...)return s[k](s,...)end or s[k]
97
            end
98
        end,
99
        __newindex = function(self,k,v)
100
            local s = rawget(self,"_RealService")
101
            if s then s[k]=v end
102
        end
103
    }
104
    local function FakeService(t,RealService)
105
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
        return setmetatable(t,fsmt)
107
    end
108
 
109
    --Fake game object
110
    local g = {
111
        GetService = function(self,s)
112
            return rawget(self,s) or _rg:GetService(s)
113
        end,
114
        Players = FakeService({
115
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
        },"Players"),
117
        UserInputService = FakeService(UIS,"UserInputService"),
118
        ContextActionService = FakeService(CAS,"ContextActionService"),
119
        RunService = FakeService({
120
            _btrs = {},
121
            RenderStepped = _rg:GetService("RunService").Heartbeat,
122
            BindToRenderStep = function(self,name,_,fun)
123
                self._btrs[name] = self.Heartbeat:Connect(fun)
124
            end,
125
            UnbindFromRenderStep = function(self,name)
126
                self._btrs[name]:Disconnect()
127
            end,
128
        },"RunService")
129
    }
130
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
131
    g.service = g.GetService
132
    FakeService(g,game)
133
    --Changing owner to fake player object to support owner:GetMouse()
134
    game,owner = g,g.Players.LocalPlayer
135
end
136
-----------------------
137
--HOKUTO, NO SHINKEN!--
138
----------------------------------------------------------------
139
--By CKbackup (Sugarie Saffron)                               --
140
--YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
141
--Discord: Sugarie Saffron#4705                               --
142
----------------------------------------------------------------
143
144
print([[
145
--Hokuto Shinken (Divine Fist of the North Star)--
146
By CKbackup (Sugarie Saffron)                               
147
YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw
148
Discord: Sugarie Saffron#4705    
149
--------------------------------
150
As I've been demoted from my SB
151
Mod rank in VSB, I don't see the
152
need to hold this back any longer.
153
154
Also, if the anims look weird or
155
the weapon looks out of place,
156
it's because it's actually modeled
157
off a scaled rig with a package.
158
It looks better with the Boy
159
package.
160
--------------------------------
161
(Keys)
162
M - Mute/Play Music
163
F - Energy Particles
164
165
K/L - Change the You Wa Shock song
166
to either the new/old instrumental ver.
167
168
(Hold) Click - Hundred Crack Fist
169
Q - Teleport
170
Z - Tell those you've struck that
171
they're already dead
172
]])
173
player = game.Players.LocalPlayer
174
mouse = player:GetMouse()
175
chara = player.Character
176
equipped = false
177
del = false
178
attacking = false
179
atkd = false
180
hum = chara:FindFirstChildOfClass("Humanoid")
181
debby = game.Debris
182
ws = 10
183
hum.WalkSpeed = 10
184
185
ArtificialHB = Instance.new("BindableEvent", script)
186
ArtificialHB.Name = "Heartbeat"
187
script:WaitForChild("Heartbeat")
188
frame = 0.03333333333333
189
tf = 0
190
allowframeloss = false
191
tossremainder = false
192
lastframe = tick()
193
script.Heartbeat:Fire()
194
game:GetService("RunService").Heartbeat:connect(function(s, p)
195
  tf = tf + s
196
  if tf >= frame then
197
    if allowframeloss then
198
      script.Heartbeat:Fire()
199
      lastframe = tick()
200
    else
201
      for i = 1, math.floor(tf / frame) do
202
        script.Heartbeat:Fire()
203
      end
204
      lastframe = tick()
205
    end
206
    if tossremainder then
207
      tf = 0
208
    else
209
      tf = tf - frame * math.floor(tf / frame)
210
    end
211
  end
212
end)
213
function swait(num)
214
  if num == 0 or num == nil then
215
    ArtificialHB.Event:wait()
216
  else
217
    for i = 0, num*30 do
218
      ArtificialHB.Event:wait()
219
    end
220
  end
221
end
222
223
New = function(Object, Parent, Name, Data)
224
	local Object = Instance.new(Object)
225
	for Index, Value in pairs(Data or {}) do
226
		Object[Index] = Value
227
	end
228
	Object.Parent = Parent
229
	Object.Name = Name
230
	return Object
231
end
232
233
RightArm = New("Model",chara,"RightArm",{})
234
MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
235
Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
236
Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
237
Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
238
Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
239
LeftArm = New("Model",chara,"LeftArm",{})
240
MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
241
Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
242
EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
243
Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
244
Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
245
246
lach = LeftArm:GetChildren()
247
rach = RightArm:GetChildren()
248
249
local pemit = Instance.new("ParticleEmitter")
250
pemit.Name = "beter"
251
pemit.Enabled = false
252
pemit.LightEmission = 1
253
pemit.Size = NumberSequence.new(1,0)
254
pemit.Transparency = NumberSequence.new(0,1)
255
pemit.Texture = "rbxassetid://745304849"
256
pemit.Lifetime = NumberRange.new(.5)
257
pemit.Acceleration = Vector3.new(0,20,0)
258
pemit.Rate = 200
259
pemit.Rotation = NumberRange.new(0,360)
260
pemit.Speed = NumberRange.new(2)
261
pemit.RotSpeed = NumberRange.new(100)
262
pemit.VelocitySpread = 100
263
pemit.ZOffset = -.5
264
265
for i, v in pairs(chara:GetChildren()) do
266
if v ~= chara.HumanoidRootPart and v:IsA("BasePart") then
267
pemit:Clone().Parent = v
268
end
269
if v:IsA("ShirtGraphic") or v:IsA("Shirt") or v:IsA("Pants") then
270
v:Destroy()
271
end
272
if v.Name == "Chest" then
273
for a, t in pairs(v:GetChildren()) do
274
if t ~= v.MainPart and t ~= v.Tail then
275
t:Destroy()
276
end
277
end
278
end
279
if v.Name == "FakeHeadM" then
280
v.FakeHead.Normal.Texture = "http://www.roblox.com/asset/?id=1000657824"
281
for a, t in pairs(v:GetChildren()) do
282
if t.Name == "SpecPart" then
283
t:Destroy()
284
end
285
end
286
end
287
end
288
289
ShadowHead = New("Part",chara,"ShadowHeads",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
290
Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.3, 1.5, 1.3),})
291
Weld = New("ManualWeld",ShadowHead,"Weld",{Part0 = ShadowHead,Part1 = chara.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
292
ShadowHead.Transparency = 1
293
294
--LACM = New("CharacterMesh",chara,"LACM",{MeshId = "32328397",BodyPart = "LeftArm"})
295
--LLCM = New("CharacterMesh",chara,"LLCM",{MeshId = "319336109",BodyPart = "LeftLeg"})
296
--RACM = New("CharacterMesh",chara,"RACM",{MeshId = "32328563",BodyPart = "RightArm"})
297
--RLCM = New("CharacterMesh",chara,"RLCM",{MeshId = "319336155",BodyPart = "RightLeg"})
298
--TOCM = New("CharacterMesh",chara,"TOCM",{MeshId = "32328670",BodyPart = "Torso"})
299
300
local shi = Instance.new("Shirt",chara)
301
shi.ShirtTemplate = "http://www.roblox.com/asset/?id=1188791280"
302
local pan = Instance.new("Pants",chara)
303
pan.PantsTemplate = "http://www.roblox.com/asset/?id=1188789468"
304
local gshi = Instance.new("ShirtGraphic",nil)
305
gshi.Graphic = "http://www.roblox.com/asset/?id=114844135"
306
307
--Sounds--
308
function LoadSnd(id,loop,vol,pit)
309
local snd = New("Sound",chara.Head,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
310
return snd
311
end
312
--AtataSnd = LoadSnd(130767866,false,1,1)
313
--DeadSnd = LoadSnd(992192914,false,1,1)
314
Music = LoadSnd(1072454168,true,1,1)
315
Music.Parent = chara
316
317
--Play Sound in Part--
318
function PlaySnd(snd,part,pitch,vol)
319
local sound = Instance.new("Sound",part)
320
sound.PlayOnRemove = true
321
sound.SoundId = "rbxassetid://"..snd
322
sound.PlaybackSpeed = pitch
323
sound.Volume = vol
324
sound:Destroy()
325
end
326
327
function CamShake(par,magni,env,dur)
328
coroutine.wrap(function()
329
for i=0,dur*60 do
330
swait()
331
hum.CameraOffset = Vector3.new(math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10)
332
end
333
hum.CameraOffset = Vector3.new(0,0,0)
334
end)()
335
end
336
337
--function PlaySnd2(snd,part)
338
--local sound = snd:Clone()
339
--sound.Parent = part
340
--sound.PlayOnRemove = true
341
--sound:Destroy()
342
--end
343
344
maincol = "White"
345
346
function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
347
local Att1 =  New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
348
local Att2 =  New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
349
local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
350
return TEff
351
end
352
353
RPunchT = CreateTrailObj(chara["Right Arm"],"White","White",0,0)
354
LPunchT = CreateTrailObj(chara["Left Arm"],"White","White",0,0)
355
RKickT = CreateTrailObj(chara["Right Leg"],"White","White",0,0)
356
LKickT = CreateTrailObj(chara["Left Leg"],"White","White",0,0)
357
358
--Punch Hit Effect--
359
function PunchEff(pos)
360
local p = Instance.new("Part",game.Workspace)
361
p.Size = Vector3.new(1,1,1)
362
p.BrickColor = BrickColor.new(maincol)
363
p.Material = "Neon"
364
p.Anchored = true
365
p.CanCollide = false
366
p.CFrame = pos
367
CamShake(p,10,.7,.1)
368
local pm = Instance.new("SpecialMesh",p)
369
pm.MeshType = "Sphere"
370
coroutine.resume(coroutine.create(function()
371
for i = 0,1,.05 do
372
swait()
373
p.Transparency = i
374
pm.Scale = Vector3.new(2*i,2*i,2*i)
375
end
376
swait()
377
p:Destroy()
378
end))
379
end
380
function BigHitEff(pos)
381
for i = 1, 5 do
382
local p = Instance.new("Part",game.Workspace)
383
p.Size = Vector3.new(1,1,1)
384
p.BrickColor = BrickColor.new("White")
385
p.Material = "Neon"
386
p.Anchored = true
387
p.CanCollide = false
388
p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
389
local pm = Instance.new("SpecialMesh",p)
390
pm.MeshType = "Sphere"
391
pm.Scale = Vector3.new(.5,0,.5)
392
local disp = coroutine.wrap(function()
393
for i = 0,1,.05 do
394
swait()
395
p.Transparency = i
396
pm.Scale = Vector3.new(2*i,2*i,2*i)
397
end
398
swait()
399
p:Destroy()
400
end)
401
disp()
402
local p = Instance.new("Part",game.Workspace)
403
p.Size = Vector3.new(1,1,1)
404
p.BrickColor = BrickColor.new("White")
405
p.Material = "Neon"
406
p.Anchored = true
407
p.CanCollide = false
408
p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
409
CamShake(p,10,1,.4)
410
local pm = Instance.new("SpecialMesh",p)
411
pm.MeshType = "Sphere"
412
pm.Scale = Vector3.new(.5,.5,.5)
413
local disp = coroutine.wrap(function()
414
for i = 0,1,.05 do
415
swait()
416
p.Transparency = i
417
pm.Scale = Vector3.new(.5*i,.5*i,.5*i)
418
pm.Offset = Vector3.new(0,8*i,0)
419
end
420
swait()
421
p:Destroy()
422
end)
423
disp()
424
end
425
end
426
427
--Damage Function--
428
function dealdmg(dude)
429
if dude ~= chara and dude:IsDescendantOf(chara) == false then
430
if dude:FindFirstChild("IsAlreadyDead") == nil then
431
local vall = Instance.new("ObjectValue",dude)
432
vall.Name = "IsAlreadyDead"
433
local faceg = Instance.new("BillboardGui",dude)
434
faceg.Name = "IsAlreadyDeadBillBoardGui"
435
faceg.Size = UDim2.new(4,0,4,0)
436
faceg.Adornee = dude.Head
437
faceg.StudsOffset = Vector3.new(0,5.5,0)
438
local simgl = Instance.new("ImageLabel",faceg)
439
simgl.Position = UDim2.new(0,0,0,0)
440
simgl.Size = UDim2.new(1,0,1,0)
441
simgl.Image = "http://www.roblox.com/asset/?id=47110473" 
442
simgl.BackgroundTransparency = 1
443
end
444
local vall = Instance.new("ObjectValue",dude)
445
vall.Name = "IsHit"
446
debby:AddItem(vall,.01)
447
local bfos = Instance.new("BodyVelocity",dude.Head)
448
bfos.P = 200000
449
bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
450
bfos.Velocity = Vector3.new(0,0,0) --+ chara.HumanoidRootPart.CFrame.lookVector * kbx
451
game.Debris:AddItem(bfos,.5)
452
end
453
end
454
455
--Explode Hitbox--
456
function ExHitbox(rad,pos,damage,env,toim,kby,kbx)
457
local E = Instance.new("Explosion") 
458
E.Position = pos
459
E.Parent = game.Workspace
460
E.BlastRadius = rad
461
E.BlastPressure = 0
462
E.Visible = false
463
E.Hit:connect(function(hit)
464
if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
465
dealdmg(hit.Parent,damage,env,toim,kby,kbx)
466
end
467
end)
468
end
469
function PExHitbox()
470
local E = Instance.new("Explosion",workspace) 
471
E.Position = chara.HumanoidRootPart.Position + chara.HumanoidRootPart.CFrame.lookVector*3
472
E.BlastRadius = 1
473
E.BlastPressure = 0
474
E.Visible = false
475
debby:AddItem(E,.05)
476
E.Hit:connect(function(hit)
477
if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
478
if punchactive == true then
479
if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil and hit.Parent.Name ~= "Salvo_Starly" then
480
dealdmg(hit.Parent)
481
PlaySnd(386946017,hit.Parent.Head,math.random(8,12)/10,1)
482
PunchEff(hit.CFrame + Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
483
end
484
end
485
if hpunchactive == true then
486
if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent.Name ~= "Salvo_Starly" then
487
dealdmg(hit.Parent)
488
PlaySnd(200633636,hit.Parent.Head,1,1)
489
BigHitEff(hit.CFrame)
490
coroutine.resume(coroutine.create(function()
491
if hit.Parent.Head:FindFirstChildOfClass("BodyVelocity") then
492
hit.Parent.Head:FindFirstChildOfClass("BodyVelocity"):Destroy()
493
end
494
local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
495
bfos.P = 100000
496
bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
497
bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 100
498
game.Debris:AddItem(bfos,.5)
499
hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
500
swait(2)
501
hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
502
end))
503
end
504
end
505
end
506
end)
507
end
508
509
--Punch Touch--
510
dela = .05
511
punchactive = false
512
function punchhit(hit)
513
if punchactive == true then
514
if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
515
dealdmg(hit.Parent)
516
PlaySnd(153092227,hit.Parent.Head,1,1)
517
PunchEff(hit.CFrame)
518
end
519
end
520
end
521
Emit2Part.Touched:connect(punchhit)
522
EmitPart.Touched:connect(punchhit)
523
524
--Chat Function--
525
function chatfunc(text,dude)
526
coroutine.resume(coroutine.create(function()
527
if dude:FindFirstChild("TalkingBillBoard")~= nil then
528
dude:FindFirstChild("TalkingBillBoard"):destroy()
529
end
530
local naeeym2 = Instance.new("BillboardGui",chara)
531
naeeym2.Size = UDim2.new(0,100,0,40)
532
naeeym2.StudsOffset = Vector3.new(0,3,0)
533
naeeym2.Adornee = dude.Head
534
naeeym2.Name = "TalkingBillBoard"
535
local tecks2 = Instance.new("TextLabel",naeeym2)
536
tecks2.BackgroundTransparency = 1
537
tecks2.BorderSizePixel = 0
538
tecks2.Text = ""
539
tecks2.Font = "Fantasy"
540
tecks2.FontSize = "Size24"
541
tecks2.TextStrokeTransparency = 0
542
tecks2.TextColor3 = Color3.new(1,1,1)
543
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
544
tecks2.Size = UDim2.new(1,0,0.5,0)
545
coroutine.resume(coroutine.create(function()
546
for i = 1,string.len(text),1 do
547
tecks2.Text = string.sub(text,1,i)
548
swait(0.01)
549
end
550
swait(1)
551
for i = 1, 5 do
552
swait(.01)
553
tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
554
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
555
tecks2.TextTransparency = tecks2.TextTransparency + .2
556
end
557
naeeym2:Destroy()
558
end))
559
end))
560
end
561
562
--function onChatted(msg)
563
--chatfunc(msg,chara)
564
--end
565
--player.Chatted:connect(onChatted)
566
567
--Clerp Animations--
568
TC = chara.HumanoidRootPart.RootJoint
569
HC = chara.Torso.Neck
570
RAC = chara.Torso["Right Shoulder"]
571
LAC = chara.Torso["Left Shoulder"]
572
RLC = chara.Torso["Right Hip"]
573
LLC = chara.Torso["Left Hip"]
574
TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
575
HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
576
RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
577
LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
578
RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
579
LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
580
RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
581
LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
582
RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
583
LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
584
grp = Instance.new("Model",chara)
585
RW = nil
586
LW = nil
587
RLW = nil
588
LLW = nil
589
590
function AddLegWelds()
591
RLW = Instance.new("Weld",chara["Right Leg"])
592
RLW.Part1 = HC.Parent
593
RLW.Part0 = chara["Right Leg"]
594
RLW.C0 = RLWF
595
LLW = Instance.new("Weld",chara["Left Leg"])
596
LLW.Part1 = HC.Parent
597
LLW.Part0 = chara["Left Leg"]
598
LLW.C0 = LLWF
599
end
600
601
function AddArmWelds()
602
RW = Instance.new("Weld",HC.Parent)
603
RW.Part1 = HC.Parent
604
RW.Part0 = chara["Right Arm"]
605
RW.C0 = RWF
606
LW = Instance.new("Weld",HC.Parent)
607
LW.Part1 = HC.Parent
608
LW.Part0 = chara["Left Arm"]
609
LW.C0 = LWF
610
end
611
612
function DestroyLegWelds()
613
RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
614
LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
615
RLW:Destroy()
616
LLW:Destroy()
617
end
618
619
function DestroyArmWelds()
620
RAC = New("Motor6D",chara.Torso,"Right Shoulder",{Part0 = chara.Torso,Part1 = chara["Right Arm"],C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)})
621
LAC = New("Motor6D",chara.Torso,"Left Shoulder",{Part0 = chara.Torso,Part1 = chara["Left Arm"],C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)})
622
RW:Destroy()
623
LW:Destroy()
624
end
625
626
function clerp(a,b,c)
627
return a:lerp(b,c)
628
end
629
630
ITCF = TCF
631
IHCF = HCF
632
IRWF = RWF
633
ILWF = LWF
634
635
function res()
636
TC.C0 = ITCF
637
HC.C0 = IHCF
638
end
639
res()
640
641
--Teleport--
642
function Teleport()
643
PlaySnd(153613030,chara.Head,1,1)
644
for i, v in pairs(chara:GetChildren()) do
645
if v:IsA("BasePart") then
646
local trace = Instance.new("Part",game.Workspace)
647
trace.Size = v.Size
648
trace.Position = v.Position
649
trace.CFrame = v.CFrame
650
trace.Anchored = true
651
trace.CanCollide = false
652
trace.BrickColor = BrickColor.new("White")
653
trace.Material = "Neon"
654
coroutine.resume(coroutine.create(function()
655
for i = 0,1,.1 do
656
swait()
657
trace.Transparency = i
658
end
659
trace:Destroy()
660
end))
661
end
662
end
663
chara.Torso.CFrame = mouse.Hit + Vector3.new(0,3,0)
664
end
665
666
--Keys--
667
holdingdown = false
668
function onButton1Down()
669
holdingdown = true
670
if del == false then
671
del = true
672
AddArmWelds()
673
for i = 0,.6,.1 do
674
swait()
675
TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,.6-i)
676
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),0,0),IHCF,.6-i)
677
RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-20)),IRWF,.6-i)
678
LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),ILWF,.6-i)
679
end
680
punchactive = true
681
local AtataSnd = LoadSnd(130767866,false,1,1)
682
AtataSnd:Play() --PlaySnd(130767866,chara.Head,1,1)
683
chatfunc("ATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATA",chara)
684
local punches = 0
685
repeat
686
swait()
687
RW.C0 = (RWF + Vector3.new(math.rad(-10,10),math.random(1,2),math.random(0,1))) * CFrame.fromEulerAnglesXYZ(math.rad(-100+math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15)))
688
LW.C0 = (LWF + Vector3.new(math.rad(-10,10),math.random(1,2),math.random(0,1))) * CFrame.fromEulerAnglesXYZ(math.rad(-100+math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15)))
689
TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(math.random(-10,10)),0)
690
coroutine.resume(coroutine.create(function()
691
local part1 = Instance.new("Part",workspace)
692
part1.Size = Vector3.new(1,2,1)
693
part1.CanCollide = false
694
part1.Anchored = true
695
part1.BrickColor = chara["Right Arm"].BrickColor
696
part1.CFrame = chara["Right Arm"].CFrame
697
local part2 = Instance.new("Part",workspace)
698
part2.Size = Vector3.new(1,2,1)
699
part2.CanCollide = false
700
part2.Anchored = true
701
part2.BrickColor = chara["Left Arm"].BrickColor
702
part2.CFrame = chara["Left Arm"].CFrame
703
if chara:FindFirstChildOfClass("CharacterMesh") then
704
local mh = Instance.new("SpecialMesh",part1)
705
mh.MeshId = "rbxassetid://279174886"
706
mh.Scale = Vector3.new(1.1,1.1,1.1)
707
local mh = Instance.new("SpecialMesh",part2)
708
mh.MeshId = "rbxassetid://279174949"
709
mh.Scale = Vector3.new(1.1,1.1,1.1)
710
end
711
coroutine.resume(coroutine.create(function()
712
for i = .4,1,.1 do
713
swait()
714
part1.Transparency = i
715
part2.Transparency = i
716
end
717
part1:Destroy()
718
part2:Destroy()
719
end))
720
end))
721
PExHitbox()
722
punches = punches + 1
723
until holdingdown == false or punches >= 230
724
punchactive = false
725
LW.C0 = ILWF
726
AtataSnd:Stop()
727
AtataSnd.TimePosition = 7.5
728
AtataSnd:Play()
729
hpunchactive = true
730
chatfunc("WATAU!",chara)
731
for i = 0,.6,.2 do
732
swait()
733
TC.C0 = clerp((TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),.6-i)
734
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),.6-i)
735
RW.C0 = clerp((RWF + Vector3.new(0,1,-1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),.6-i)
736
end
737
PExHitbox()
738
swait()
739
TC.C0 = (TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0)
740
HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0)
741
RW.C0 = (RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0)
742
swait(.2)
743
hpunchactive = false
744
punchactive = false
745
swait(.5)
746
for i = 0,.6,.1 do
747
swait()
748
TC.C0 = clerp((TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),ITCF,.4+i)
749
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),IHCF,.4+i)
750
RW.C0 = clerp((RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),IRWF,.4+i)
751
LW.C0 = ILWF
752
end
753
DestroyArmWelds()
754
walking = false
755
AtataSnd.TimePosition = 0
756
debby:AddItem(AtataSnd,2)
757
del = false
758
end
759
end
760
function onButton2Down()
761
if del == false then
762
del = true
763
AddArmWelds()
764
ShadowHead.Transparency = 0
765
for i = 0,.6,.05 do
766
swait()
767
TC.C0 = ITCF
768
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.4+i)
769
RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
770
LW.C0 = ILWF
771
end
772
RW.C0 = (RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
773
local DeadSnd = LoadSnd(992192914,false,1,1)
774
DeadSnd:Play() --PlaySnd(992192914,workspace,1,1)
775
chatfunc("You are already dead.",chara)
776
swait(2.8)
777
local dudes = {}
778
for i, v in pairs(workspace:GetDescendants()) do
779
if v:IsA("ObjectValue") and v.Name == "IsAlreadyDead" and v.Parent:FindFirstChildOfClass("Humanoid") then
780
table.insert(dudes,v.Parent)
781
end
782
end
783
if #dudes == 0 then
784
DeadSnd:Destroy()
785
end
786
for no = 1, #dudes do
787
coroutine.resume(coroutine.create(function()
788
dudes[no].IsAlreadyDead:Destroy()
789
dudes[no].IsAlreadyDeadBillBoardGui:Destroy()
790
if dudes[no]:FindFirstChildOfClass("Humanoid").Health > 1 then
791
chatfunc("What?!",dudes[no])
792
end
793
debby:AddItem(DeadSnd,6)
794
swait(.5)
795
for i, v in pairs(dudes[no]:GetChildren()) do
796
if v:IsA("BasePart") then
797
v.Anchored = true
798
end
799
end
800
for oa = 1, 60 do
801
local effp = Instance.new("Part",workspace)
802
effp.CanCollide = false
803
effp.BottomSurface = 0
804
effp.TopSurface = 0
805
effp.Size = Vector3.new(1,1,1)
806
effp.Anchored = true
807
effp.CFrame = (dudes[no].Head.CFrame * CFrame.new(0,-1.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,359)),math.rad(math.random(0,359)),math.rad(math.random(0,359)))
808
effp.Material = "Neon"
809
effp.BrickColor = BrickColor.new("White")
810
local efm = Instance.new("BlockMesh",effp)
811
CamShake(effp,20,.4,.1)
812
coroutine.resume(coroutine.create(function()
813
for a = 0,1,.05 do
814
efm.Scale = Vector3.new(1-a,1000*a,1-a)
815
effp.Transparency = a
816
swait()
817
end
818
effp:Destroy()
819
end))
820
swait(.05)
821
end
822
dudes[no]:BreakJoints()
823
for oa = 1, 5 do
824
local effp = Instance.new("Part",workspace)
825
effp.CanCollide = false
826
effp.BottomSurface = 0
827
effp.TopSurface = 0
828
effp.Size = Vector3.new(1,1,1)
829
effp.Anchored = true
830
effp.CFrame = (dudes[no].Head.CFrame * CFrame.new(0,-1.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,359)),math.rad(math.random(0,359)),math.rad(math.random(0,359)))
831
effp.Material = "Neon"
832
effp.BrickColor = BrickColor.new("White")
833
local efm = Instance.new("BlockMesh",effp)
834
CamShake(effp,20,1,.4)
835
coroutine.resume(coroutine.create(function()
836
for a = 0,1,.01 do
837
efm.Scale = Vector3.new(2-a*2,1000*a,2-a*2)
838
effp.Transparency = a
839
swait()
840
end
841
effp:Destroy()
842
end))
843
end
844
for i, v in pairs(dudes[no]:GetChildren()) do
845
if v:IsA("BasePart") then
846
v.Anchored = false
847
end
848
end
849
for a, v in pairs(dudes[no]:GetChildren()) do
850
if v:IsA("BasePart") then
851
local bodpos = Instance.new("BodyPosition",v)
852
bodpos.Position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
853
v.BrickColor = BrickColor.new("Really white")
854
v.Material = "Neon"
855
end
856
end
857
for d = 0,1,.1 do
858
for i, v in pairs(dudes[no]:GetChildren()) do
859
if v:IsA("BasePart") then
860
v.Transparency = d
861
swait()
862
end
863
end
864
end
865
for i, v in pairs(dudes[no]:GetChildren()) do
866
if v:IsA("BasePart") then
867
v:Destroy()
868
end
869
end
870
end))
871
end
872
for i = 0,.6,.05 do
873
swait()
874
TC.C0 = ITCF
875
HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.6-i)
876
RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.6-i)
877
LW.C0 = ILWF
878
end
879
ShadowHead.Transparency = 1
880
DestroyArmWelds()
881
walking = false
882
del = false
883
end
884
end
885
886
rage = false
887
if mouse then
888
mouse.Button1Down:connect(onButton1Down)
889
mouse.Button1Up:connect(function()
890
holdingdown = false
891
end)
892
mouse.KeyDown:connect(function(key)
893
if key == "z" then
894
onButton2Down()
895
elseif key == "f" then
896
if rage == false then
897
for i, v in pairs(chara:GetDescendants()) do
898
if v.Name == "beter" then
899
v.Enabled = true
900
end
901
end
902
rage = true
903
elseif rage == true then
904
for i, v in pairs(chara:GetDescendants()) do
905
if v.Name == "beter" then
906
v.Enabled = false
907
end
908
end
909
rage = false
910
end
911
elseif key == "q" then
912
Teleport()
913
elseif key == "m" then
914
if Music.IsPlaying == true then
915
Music:Stop()
916
elseif Music.IsPlaying == false then
917
Music:Play()
918
end
919
elseif key == "k" then
920
Music.SoundId = "rbxassetid://548642448"
921
elseif key == "l" then
922
Music.SoundId = "rbxassetid://1072454168"
923
end
924
end)
925
--mouse.KeyUp:connect(onKeyUp)
926
end
927
928
--Loop Function--
929
walking = false
930
toim = 0
931
while true do
932
swait()
933
hum.Name = "hoomanood"
934
hum.Health = math.huge
935
hum.MaxHealth = math.huge
936
--if gkeydown == true then
937
--coroutine.resume(coroutine.create(function()
938
--onButton1Down()
939
--end))
940
--end
941
toim = toim + .1
942
if del == false then attacking = false elseif del == true then attacking = true end
943
torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
944
if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then
945
for i = 0,1,.25 do
946
swait()
947
if del == false and attacking == false then
948
TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,i)
949
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
950
--RW.C0 = IRWF
951
--LW.C0 = IRWF
952
end
953
end
954
walking = false
955
elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then
956
for i = 0,1,.25 do
957
swait()
958
if del == false and attacking == false then
959
TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,1-i)
960
HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,1-i)
961
--RW.C0 = IRWF
962
--LW.C0 = ILWF
963
end
964
end
965
walking = true
966
else
967
end
968
end