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