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