SHOW:
|
|
- or go back to the newest paste.
1 | - | --[[ World eater Script ]]-- |
1 | + | plr = owner |
2 | - | --[[ Declarations ]]-- |
2 | + | repeat |
3 | wait(0.4) | |
4 | - | -- This script has been converted to FE by iPxter |
4 | + | until plr.Character |
5 | chr = plr.Character | |
6 | human = chr:FindFirstChild("Humanoid") | |
7 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
7 | + | cam = workspace.CurrentCamera |
8 | - | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
8 | + | selected = false |
9 | - | do |
9 | + | equipd = false |
10 | - | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") |
10 | + | tors = chr.Torso |
11 | - | script.Parent = Player.Character |
11 | + | rarm = chr["Right Arm"] |
12 | larm = chr["Left Arm"] | |
13 | - | --RemoteEvent for communicating |
13 | + | rleg = chr["Right Leg"] |
14 | - | local Event = Instance.new("RemoteEvent") |
14 | + | lleg = chr["Left Leg"] |
15 | - | Event.Name = "UserInput_Event" |
15 | + | hrp = chr.HumanoidRootPart |
16 | hed = chr.Head | |
17 | - | --Fake event to make stuff like Mouse.KeyDown work |
17 | + | anim = human.Animator |
18 | - | local function fakeEvent() |
18 | + | activu = false |
19 | - | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} |
19 | + | ragged = false |
20 | - | t.connect = t.Connect |
20 | + | batting = false |
21 | - | return t |
21 | + | Heartbeat = Instance.new("BindableEvent") |
22 | Heartbeat.Name = "Heartbeat" | |
23 | Heartbeat.Parent = script | |
24 | - | --Creating fake input objects with fake variables |
24 | + | Music = false |
25 | - | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} |
25 | + | Berserk = false |
26 | - | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
26 | + | Combo = 1 |
27 | - | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) |
27 | + | frame = 0.03333333333333333 |
28 | - | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil |
28 | + | tf = 0 |
29 | - | end} |
29 | + | Maedl = Instance.new("Model",chr) |
30 | - | --Merged 2 functions into one by checking amount of arguments |
30 | + | local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(255/255,255/255,255/255)), |
31 | - | CAS.UnbindAction = CAS.BindAction |
31 | + | ColorSequenceKeypoint.new(0.16, Color3.new(0/0,0/0,0/0)), |
32 | ColorSequenceKeypoint.new(0.32, Color3.new(0/0,0/0,0/0)), | |
33 | - | --This function will trigger the events that have been :Connect()'ed |
33 | + | ColorSequenceKeypoint.new(0.48, Color3.new(0/0,0/0,0/0)), |
34 | - | local function te(self,ev,...) |
34 | + | ColorSequenceKeypoint.new(0.64, Color3.new(0/0,0/0,0/0)), |
35 | - | local t = m[ev] |
35 | + | ColorSequenceKeypoint.new(0.80, Color3.new(0/0,0/0,0/0)), |
36 | - | if t and t._fakeEvent and t.Function then |
36 | + | ColorSequenceKeypoint.new(0.96, Color3.new(0/0,0/0,0/0)), |
37 | - | t.Function(...) |
37 | + | ColorSequenceKeypoint.new(1, Color3.new(0/0,0/0,0/0))} |
38 | - | end |
38 | + | local fire = Instance.new("ParticleEmitter", tors) |
39 | fire.Enabled = false | |
40 | - | m.TrigEvent = te |
40 | + | fire.Lifetime = NumberRange.new(1.5) |
41 | - | UIS.TrigEvent = te |
41 | + | fire.RotSpeed = NumberRange.new(10) |
42 | fire.Rate = 250 | |
43 | - | Event.OnServerEvent:Connect(function(plr,io) |
43 | + | fire.VelocitySpread = 360 |
44 | - | if plr~=Player then return end |
44 | + | fire.Speed = NumberRange.new(2,8) |
45 | - | if io.isMouse then |
45 | + | fire.Rotation = NumberRange.new(151515) |
46 | - | m.Target = io.Target |
46 | + | fire.Name = "Fire" |
47 | - | m.Hit = io.Hit |
47 | + | fire.LightEmission = 0.78 |
48 | - | else |
48 | + | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" |
49 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
49 | + | fire.Color = ColorSequence.new(ColorsArray) |
50 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
50 | + | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6), NumberSequenceKeypoint.new(1, 0)}) |
51 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
51 | + | fire.ZOffset = 3 |
52 | ||
53 | - | for _,t in pairs(CAS.Actions) do |
53 | + | function Lightningz(pos, pos2, radius, numParts, model, removalTime) |
54 | - | for _,k in pairs(t.Keys) do |
54 | + | radius = radius or 0.2 |
55 | - | if k==io.KeyCode then |
55 | + | numParts = numParts or 10 |
56 | - | t.Function(t.Name,io.UserInputState,io) |
56 | + | model = model or game.Workspace |
57 | - | end |
57 | + | local pos = pos |
58 | local lastpos = lastpos | |
59 | local lv = CFrame.new(pos,pos2).lookVector | |
60 | - | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
60 | + | removalTime = 0.001 |
61 | - | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
61 | + | local dist = (pos-pos2).magnitude |
62 | - | end |
62 | + | local trans = 0 |
63 | - | end) |
63 | + | local color = BrickColor.new("Bright red") |
64 | - | Event.Parent = NLS([==[ |
64 | + | local dbp = dist/numParts |
65 | - | local Player = game:GetService("Players").LocalPlayer |
65 | + | local last = pos |
66 | - | local Event = script:WaitForChild("UserInput_Event") |
66 | + | for i = 1,numParts do |
67 | local p = Instance.new("Part") | |
68 | - | local UIS = game:GetService("UserInputService") |
68 | + | p.FormFactor = "Custom" |
69 | - | local input = function(io,a) |
69 | + | p.Size = Vector3.new(1,1,1) |
70 | - | if a then return end |
70 | + | p.CanCollide = false |
71 | - | --Since InputObject is a client-side instance, we create and pass table instead |
71 | + | p.Transparency = trans |
72 | - | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) |
72 | + | p.Anchored = true |
73 | p.BrickColor = color | |
74 | - | UIS.InputBegan:Connect(input) |
74 | + | p.Material = "Neon" |
75 | - | UIS.InputEnded:Connect(input) |
75 | + | local x = math.random(-100,100)/100*dbp*4 |
76 | local y = math.random(-100,100)/100*dbp*4 | |
77 | - | local Mouse = Player:GetMouse() |
77 | + | local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0) |
78 | - | local h,t |
78 | + | local dist2 = (p2.p-last).magnitude |
79 | - | --Give the server mouse data 30 times every second, but only if the values changed |
79 | + | local mid = (p2.p+last)/2 |
80 | - | --If player is not moving their mouse, client won't fire events |
80 | + | local m = Instance.new("BlockMesh",p) |
81 | - | while wait(1/30) do |
81 | + | m.Scale = Vector3.new(radius,radius,dist2 + (radius/4)) |
82 | - | if h~=Mouse.Hit or t~=Mouse.Target then |
82 | + | p.CFrame = CFrame.new(mid,p2.p) |
83 | - | h,t=Mouse.Hit,Mouse.Target |
83 | + | last = p2.p |
84 | - | Event:FireServer({isMouse=true,Target=t,Hit=h}) |
84 | + | p.Parent = model |
85 | - | end |
85 | + | game.Debris:AddItem(p, 0.05) |
86 | - | end]==],Player.Character) |
86 | + | end |
87 | - | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS |
87 | + | if model ~= game.Workspace then |
88 | game.Debris:AddItem(model, 0) | |
89 | end | |
90 | - | wait(.0000000000000000000001) |
90 | + | |
91 | - | local Player = owner |
91 | + | |
92 | - | local Character = Player.Character |
92 | + | function Lightningz2(pos, pos2, radius, numParts, model, removalTime) |
93 | - | local Head = Character.Head |
93 | + | radius = radius or 0.2 |
94 | - | local Torso = Character.Torso |
94 | + | numParts = numParts or 10 |
95 | - | local Right_Arm = Character["Right Arm"] |
95 | + | model = model or game.Workspace |
96 | - | local Right_Leg = Character["Right Leg"] |
96 | + | local pos = pos |
97 | - | local Left_Arm = Character["Left Arm"] |
97 | + | local lastpos = lastpos |
98 | - | local Left_Leg = Character["Left Leg"] |
98 | + | local lv = CFrame.new(pos,pos2).lookVector |
99 | - | local Humanoid = Character.Humanoid |
99 | + | removalTime = 0.001 |
100 | - | local Animation = "Idle" |
100 | + | local dist = (pos-pos2).magnitude |
101 | - | local LeftShoulder = Torso["Left Shoulder"] |
101 | + | local trans = 0 |
102 | - | local Left_Hip = Torso["Left Hip"] |
102 | + | local color = BrickColor.new("Bright red") |
103 | - | local RightShoulder = Torso["Right Shoulder"] |
103 | + | local dbp = dist/numParts |
104 | - | local Right_Hip = Torso["Right Hip"] |
104 | + | local last = pos |
105 | - | local Root = Character.HumanoidRootPart |
105 | + | for i = 1,numParts do |
106 | - | local RootJoint = Root.RootJoint |
106 | + | local p = Instance.new("Part") |
107 | - | local Attacking = false |
107 | + | p.FormFactor = "Custom" |
108 | - | local CanAttack = true |
108 | + | p.Size = Vector3.new(1,1,1) |
109 | - | local Anim = "Idle" |
109 | + | p.CanCollide = false |
110 | - | local Combo = 1 |
110 | + | p.Transparency = trans |
111 | - | local Blocking = false |
111 | + | p.Anchored = true |
112 | - | local MaxDestruction = 1000 |
112 | + | p.BrickColor = color |
113 | - | local Destruction = 0 |
113 | + | p.Material = "Neon" |
114 | - | local MaxBlock = 100 |
114 | + | local x = math.random(-100,100)/100*dbp/2 |
115 | - | local Effects = {} |
115 | + | local y = math.random(-100,100)/100*dbp/2 |
116 | - | local Color = "Bright yellow" |
116 | + | local p2 = CFrame.new(pos+lv*(i*dbp),pos2+lv)*CFrame.new(x,y,0) |
117 | - | local Invert = false |
117 | + | local dist2 = (p2.p-last).magnitude |
118 | - | local Idle = 0 |
118 | + | local mid = (p2.p+last)/2 |
119 | - | local Equipped = false |
119 | + | local m = Instance.new("BlockMesh",p) |
120 | - | local Running = false |
120 | + | m.Scale = Vector3.new(radius,radius,dist2 + (radius/4)) |
121 | - | local Unseathed = false |
121 | + | p.CFrame = CFrame.new(mid,p2.p) |
122 | - | local Shard = "None" |
122 | + | last = p2.p |
123 | p.Parent = model | |
124 | - | Humanoid.MaxHealth = 3000 |
124 | + | game.Debris:AddItem(p, 0.05) |
125 | - | Humanoid.Health = 3000 |
125 | + | end |
126 | if model ~= game.Workspace then | |
127 | - | local WorldEaterTheme = Instance.new("Sound",Character) |
127 | + | game.Debris:AddItem(model, 0) |
128 | - | WorldEaterTheme.Name = "WorldEaterTheme" |
128 | + | |
129 | - | WorldEaterTheme.Looped = true |
129 | + | |
130 | - | WorldEaterTheme.SoundId = "http://www.roblox.com/asset?id=149981769" |
130 | + | |
131 | - | WorldEaterTheme:Play() |
131 | + | game:GetService("RunService").Heartbeat:connect(function(s, p) |
132 | tf = tf + s | |
133 | - | Left_Shoulder = Instance.new("Weld", Torso) |
133 | + | if tf >= frame then |
134 | - | Left_Shoulder.Part0 = Torso |
134 | + | for i = 1, math.floor(tf / frame) do |
135 | - | Left_Shoulder.Part1 = Left_Arm |
135 | + | Heartbeat:Fire() |
136 | - | Left_Shoulder.Name = "Left Shoulder" |
136 | + | end |
137 | - | Left_Shoulder.C0 = CFrame.new(-1.5,0,0) |
137 | + | tf = tf - frame * math.floor(tf / frame) |
138 | end | |
139 | - | Right_Shoulder = Instance.new("Weld", Torso) |
139 | + | end) |
140 | - | Right_Shoulder.Part0 = Torso |
140 | + | function swait(num) |
141 | - | Right_Shoulder.Part1 = Right_Arm |
141 | + | if num == 0 or num == nil then |
142 | - | Right_Shoulder.Name = "Right Shoulder" |
142 | + | Heartbeat.Event:wait() |
143 | - | Right_Shoulder.C0 = CFrame.new(1.5,0,0) |
143 | + | else |
144 | for i = 1, num do | |
145 | - | LeftShoulder.Parent = nil |
145 | + | Heartbeat.Event:wait() |
146 | - | RightShoulder.Parent = nil |
146 | + | end |
147 | - | Humanoid.WalkSpeed = 10 |
147 | + | end |
148 | end | |
149 | - | local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14) |
149 | + | tool = Instance.new("Tool") |
150 | - | Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
150 | + | tool.CanBeDropped = false |
151 | - | Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
151 | + | tool.RequiresHandle = false |
152 | - | Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
152 | + | tool.TextureId = "rbxassetid://291302154" |
153 | - | Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
153 | + | tool.ToolTip = "NANI" |
154 | tool.Name = "AAAAAAAAAAAAAA" | |
155 | tool.Parent = plr.Backpack | |
156 | - | Movemment = 1 |
156 | + | modz = Instance.new("Model") |
157 | - | Walk = 0 |
157 | + | modz.Name = "efx" |
158 | modz.Parent = chr | |
159 | - | Animator = Humanoid.Animator |
159 | + | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
160 | - | --Animate = Character.Animate |
160 | + | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
161 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
162 | - | Animator.Parent = nil |
162 | + | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
163 | - | --Animate.Parent = nil |
163 | + | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
164 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
165 | - | local Services = { |
165 | + | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
166 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
167 | - | SoundService = game:GetService("SoundService"); |
167 | + | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
168 | - | Players = owner |
168 | + | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
169 | - | Debris = game:GetService("Debris"); |
169 | + | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
170 | - | Workspace = game:GetService("Workspace"); |
170 | + | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
171 | - | Lighting = game:GetService("Lighting"); |
171 | + | local nscale = Instance.new("NumberValue") |
172 | - | HttpService = game:GetService("HttpService"); |
172 | + | nscale.Value = 1 |
173 | - | InsertService = game:GetService("InsertService"); |
173 | + | nscale.Parent = nil |
174 | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
175 | - | } |
175 | + | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
176 | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
177 | - | local ManaBarGUI = Instance.new("ScreenGui", Player.PlayerGui) |
177 | + | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
178 | - | ManaBarGUI.Name = "ManaBarGUI" |
178 | + | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
179 | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
180 | - | local ManaBarP1 = Instance.new("Frame", ManaBarGUI) |
180 | + | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
181 | - | ManaBarP1.Name = "ManaBarPart1" |
181 | + | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
182 | - | ManaBarP1.Size = UDim2.new(0,300,0,20) |
182 | + | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
183 | - | ManaBarP1.Position = UDim2.new(0,350,0.1,0) |
183 | + | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
184 | - | ManaBarP1.BackgroundColor3 = BrickColor.Black().Color |
184 | + | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
185 | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
186 | - | local ManaBarP2 = Instance.new("Frame", ManaBarP1) |
186 | + | nscale.Changed:connect(function() |
187 | - | ManaBarP2.Name = "ManaBarPart2" |
187 | + | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
188 | - | ManaBarP2.Size = UDim2.new(0,300,0,20) |
188 | + | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
189 | - | ManaBarP2.Position = UDim2.new(0,0,0,0) |
189 | + | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
190 | - | ManaBarP2.BackgroundColor3 = BrickColor.new("Black").Color |
190 | + | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
191 | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
192 | - | local ManaBarText = Instance.new("TextLabel", ManaBarP1) |
192 | + | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) |
193 | - | ManaBarText.Name = "ManaBarText" |
193 | + | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
194 | - | ManaBarText.Size = UDim2.new(0,300,0,20) |
194 | + | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) |
195 | - | ManaBarText.Position = UDim2.new(0,0,-1.5,0) |
195 | + | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
196 | - | ManaBarText.TextScaled = true |
196 | + | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
197 | - | ManaBarText.Text = "<{[ Destruction ]}> 0 <{[ Destruction ]}>" |
197 | + | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
198 | - | ManaBarText.BackgroundTransparency = 1 |
198 | + | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
199 | - | ManaBarText.TextStrokeTransparency = 0 |
199 | + | end) |
200 | - | ManaBarText.TextStrokeColor3 = Color3.new(1,1,1) |
200 | + | RS = tors:FindFirstChild("Right Shoulder") |
201 | - | ManaBarText.TextColor3 = Color3.new(0,0,0) |
201 | + | LS = tors:FindFirstChild("Left Shoulder") |
202 | - | ManaBarText.Font = "Garamond" |
202 | + | RH = tors:FindFirstChild("Right Hip") |
203 | LH = tors:FindFirstChild("Left Hip") | |
204 | - | local WorldEaterGui = Instance.new("BillboardGui", Head) |
204 | + | RJ = hrp:FindFirstChild("RootJoint") |
205 | - | WorldEaterGui.ExtentsOffset = Vector3.new(0,5,0) |
205 | + | N = tors:FindFirstChild("Neck") |
206 | - | WorldEaterGui.Adornee = Head |
206 | + | cf = CFrame.new |
207 | - | WorldEaterGui.AlwaysOnTop = true |
207 | + | ang = CFrame.Angles |
208 | - | WorldEaterGui.Enabled = true |
208 | + | rd = math.rad |
209 | - | WorldEaterGui.Size = UDim2.new(0, 200,0, 50) |
209 | + | rd2 = math.random |
210 | function nooutline(p) | |
211 | - | local WorldEaterText = Instance.new("TextLabel", WorldEaterGui) |
211 | + | p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10 |
212 | - | WorldEaterText.BackgroundTransparency = 1 |
212 | + | end |
213 | - | WorldEaterText.Font = "Garamond" |
213 | + | function makepart(color, name, reflec, trans, mater, parnt, cfram) |
214 | - | WorldEaterText.Size = UDim2.new(0, 200,0, 50) |
214 | + | local port = Instance.new("Part") |
215 | - | WorldEaterText.TextStrokeColor3 = BrickColor.Red().Color |
215 | + | port.BrickColor = BrickColor.new(color) |
216 | - | WorldEaterText.TextStrokeTransparency = 0 |
216 | + | port.Name = name |
217 | - | WorldEaterText.TextColor3 = BrickColor.Black().Color |
217 | + | port.Transparency = trans |
218 | - | WorldEaterText.TextScaled = true |
218 | + | nooutline(port) |
219 | - | WorldEaterText.Text = "World Eater" |
219 | + | port.Reflectance = reflec |
220 | port.Material = mater | |
221 | - | --------[[ Mesh Ids ]]-------- |
221 | + | port.Anchored = false |
222 | port.CanCollide = false | |
223 | - | SpikeMeshId = 1033714 |
223 | + | port.Locked = true |
224 | - | SpikeBallId = 9982590 |
224 | + | port.Size = Vector3.new(0.2, 0.2, 0.2) |
225 | - | StarMeshId = 45428961 |
225 | + | port.Parent = parnt |
226 | - | CrystalMeshId = 9756362 |
226 | + | return port |
227 | end | |
228 | - | --[[ Essential Functions ]]-- |
228 | + | function makemesh(meshtype, scale, meshid, parent) |
229 | - | function NoOutlines(Part) |
229 | + | local mes = Instance.new("SpecialMesh") |
230 | - | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 |
230 | + | mes.MeshType = meshtype |
231 | mes.Scale = scale | |
232 | if meshtype == "FileMesh" then | |
233 | mes.MeshId = meshid | |
234 | - | local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape) |
234 | + | end |
235 | mes.Parent = parent | |
236 | - | local Part = Instance.new("Part", Parent) |
236 | + | return mes |
237 | - | Part.Name = Name |
237 | + | end |
238 | - | Part.BrickColor = BrickColor.new(Color) |
238 | + | function makeweld(parent, p0, p1, c0, c1) |
239 | - | Part.Size = Size |
239 | + | local wel = Instance.new("Weld") |
240 | - | Part.Material = Material |
240 | + | wel.Part0 = p0 |
241 | - | Part.Transparency = Transparency |
241 | + | wel.Part1 = p1 |
242 | - | Part.Shape = Shape |
242 | + | wel.C0 = c0 |
243 | - | Part.CanCollide = false |
243 | + | if c1 ~= nil then |
244 | - | NoOutlines(Part) |
244 | + | wel.C1 = c1 |
245 | end | |
246 | - | return Part |
246 | + | wel.Parent = parent |
247 | return wel | |
248 | end | |
249 | local lauf1 = Instance.new("Sound") | |
250 | - | local CreateMesh = function(Parent, Scale, Shape) |
250 | + | lauf1.SoundId = "rbxassetid://137473066" |
251 | lauf1.Volume = 1.5 | |
252 | lauf1.Pitch = 2 | |
253 | - | local Mesh = Instance.new("BlockMesh", Parent) |
253 | + | lauf1.Parent = hrp |
254 | - | Mesh.Scale = Scale |
254 | + | function lerpz(joint, prop, cfrmz, alp) |
255 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
256 | - | return Mesh |
256 | + | end |
257 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
258 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
259 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
260 | - | local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency) |
260 | + | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) |
261 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
262 | - | local WedgePart = Instance.new("WedgePart", Parent) |
262 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) |
263 | - | WedgePart.Name = Name |
263 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) |
264 | - | WedgePart.BrickColor = BrickColor.new(Color) |
264 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) |
265 | - | WedgePart.Size = Size |
265 | + | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) |
266 | - | WedgePart.Material = Material |
266 | + | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) |
267 | - | WedgePart.Transparency = Transparency |
267 | + | function resetlerp() |
268 | - | WedgePart.CanCollide = false |
268 | + | RJ.C0 = RJC0 |
269 | - | NoOutlines(WedgePart) |
269 | + | RJ.C1 = RJC1 |
270 | N.C0 = NC0 | |
271 | - | return WedgePart |
271 | + | N.C1 = NC1 |
272 | RS.C0 = RSC0 | |
273 | RS.C1 = RSC1 | |
274 | LS.C0 = LSC0 | |
275 | - | local CreateWeld = function(Parent, Cframe, P1 , P0) |
275 | + | LS.C1 = LSC1 |
276 | RH.C0 = RHC0 | |
277 | - | local Weld = Instance.new("Weld", Parent) |
277 | + | RH.C1 = RHC1 |
278 | - | Weld.Part0 = P0 |
278 | + | LH.C0 = LHC0 |
279 | - | Weld.Part1 = P1 |
279 | + | LH.C1 = LHC1 |
280 | - | Weld.Name = P0.Name .. "To" .. P1.Name |
280 | + | end |
281 | - | Weld.C0 = Cframe |
281 | + | function ragplayer(cactus) |
282 | cactus.Humanoid.PlatformStand = true | |
283 | - | return Weld |
283 | + | if cactus["Right Arm"]~=nil and cactus.Torso:FindFirstChild("Right Shoulder") then |
284 | cactus.Torso:FindFirstChild("Right Shoulder"):Destroy() | |
285 | makegloo(cactus.Torso, RightShoulderC0, RightShoulderC1, cactus.Torso, cactus["Right Arm"], "Right Shoulder") | |
286 | maketouchy(cactus["Right Arm"], cactus["Right Arm"], CFrame.new(0, 0.5, 0)) | |
287 | - | local CreateVelocity = function(Parent,Velocity,Force) |
287 | + | end |
288 | if cactus["Left Arm"]~=nil and cactus.Torso:FindFirstChild("Left Shoulder") then | |
289 | - | local BodyVelocity = Instance.new("BodyVelocity", Parent) |
289 | + | cactus.Torso:FindFirstChild("Left Shoulder"):Destroy() |
290 | - | BodyVelocity.Velocity = Velocity |
290 | + | makegloo(cactus.Torso, LeftShoulderC0, LeftShoulderC1, cactus.Torso, cactus["Left Arm"], "Left Shoulder") |
291 | - | BodyVelocity.MaxForce = Force |
291 | + | maketouchy(cactus["Left Arm"], cactus["Left Arm"], CFrame.new(0, 0.5, 0)) |
292 | end | |
293 | if cactus["Right Leg"]~=nil and cactus.Torso:FindFirstChild("Right Hip") then | |
294 | cactus.Torso:FindFirstChild("Right Hip"):Destroy() | |
295 | - | return BodyVelocity |
295 | + | makegloo(cactus.Torso, RightHipC0, RightHipC1, cactus.Torso, cactus["Right Leg"], "Right Hip") |
296 | maketouchy(cactus["Right Leg"], cactus["Right Leg"], CFrame.new(0, 0.5, 0)) | |
297 | end | |
298 | if cactus["Left Leg"]~=nil and cactus.Torso:FindFirstChild("Left Hip") then | |
299 | cactus.Torso:FindFirstChild("Left Hip"):Destroy() | |
300 | - | local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale) |
300 | + | makegloo(cactus.Torso, LeftHipC0, LeftHipC1, cactus.Torso, cactus["Left Leg"], "Left Hip") |
301 | maketouchy(cactus["Left Leg"], cactus["Left Leg"], CFrame.new(0, 0.5, 0)) | |
302 | end | |
303 | - | local Part = Instance.new("Part", Parent) |
303 | + | |
304 | - | Part.Name = Name |
304 | + | function test() |
305 | - | Part.BrickColor = BrickColor.new(Color) |
305 | + | if selected == false or activu == true then |
306 | - | Part.Size = Size |
306 | + | return |
307 | - | Part.Material = Material |
307 | + | end |
308 | - | Part.Transparency = Transparency |
308 | + | if ragged == false then |
309 | - | Part.CanCollide = false |
309 | + | ragged = true |
310 | - | NoOutlines(Part) |
310 | + | human.PlatformStand = true |
311 | if rarm and tors:FindFirstChild("Right Shoulder") then | |
312 | - | local Mesh = Instance.new("SpecialMesh", Part) |
312 | + | tors:FindFirstChild("Right Shoulder"):Destroy() |
313 | - | Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId |
313 | + | makegloo(tors, RightShoulderC0, RightShoulderC1, tors, rarm, "Right Shoulder") |
314 | - | Mesh.Scale = Scale |
314 | + | maketouchy(rarm, rarm, CFrame.new(0, 0.5, 0)) |
315 | end | |
316 | - | return Mesh and Part |
316 | + | if larm and tors:FindFirstChild("Left Shoulder") then |
317 | tors:FindFirstChild("Left Shoulder"):Destroy() | |
318 | makegloo(tors, LeftShoulderC0, LeftShoulderC1, tors, larm, "Left Shoulder") | |
319 | maketouchy(larm, larm, CFrame.new(0, 0.5, 0)) | |
320 | - | local MakeSFX = function(Parent, Id, Volume, Pitch, Type) |
320 | + | end |
321 | if rleg and tors:FindFirstChild("Right Hip") then | |
322 | - | local SFX = Instance.new("Sound", Parent) |
322 | + | tors:FindFirstChild("Right Hip"):Destroy() |
323 | - | SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id |
323 | + | makegloo(tors, RightHipC0, RightHipC1, tors, rleg, "Right Hip") |
324 | - | SFX.Name = "SFX" |
324 | + | maketouchy(rleg, rleg, CFrame.new(0, 0.5, 0)) |
325 | - | SFX:Play() |
325 | + | end |
326 | - | SFX.Volume = Volume |
326 | + | if lleg and tors:FindFirstChild("Left Hip") then |
327 | - | SFX.Pitch = Pitch |
327 | + | tors:FindFirstChild("Left Hip"):Destroy() |
328 | - | SFX.PlayOnRemove = true |
328 | + | makegloo(tors, LeftHipC0, LeftHipC1, tors, lleg, "Left Hip") |
329 | - | SFX:Remove() |
329 | + | maketouchy(lleg, lleg, CFrame.new(0, 0.5, 0)) |
330 | end | |
331 | - | if Type == "Echo" then |
331 | + | local BP = Instance.new("BodyPosition",tors)BP.Position = Vector3.new(0,1000,0) BP.P = 50 BP.maxForce = Vector3.new(0,math.huge,0) |
332 | local BG = Instance.new("BodyGyro",tors)BG.CFrame = CFrame.new(tors.Position, mouse.hit.p)BG.P = 10 BG.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
333 | - | Instance.new("EchoSoundEffect", SFX) |
333 | + | elseif ragged == true then |
334 | ragged = false | |
335 | - | end |
335 | + | human.Jump = true |
336 | if rarm and tors:FindFirstChild("Right Shoulder") then | |
337 | tors:FindFirstChild("Right Shoulder"):Destroy() | |
338 | makejoint(tors, RSC0, RSC1, tors, rarm, "Right Shoulder") | |
339 | - | local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale) |
339 | + | rarm:FindFirstChild("touchy"):Destroy() |
340 | end | |
341 | if larm and tors:FindFirstChild("Left Shoulder") then | |
342 | - | local Part = Instance.new("Part", Parent) |
342 | + | tors:FindFirstChild("Left Shoulder"):Destroy() |
343 | - | Part.Name = Name |
343 | + | makejoint(tors, LSC0, LSC1, tors, larm, "Left Shoulder") |
344 | - | Part.BrickColor = BrickColor.new(Color) |
344 | + | larm:FindFirstChild("touchy"):Destroy() |
345 | - | Part.Size = Size |
345 | + | end |
346 | - | Part.Material = Material |
346 | + | if rleg and tors:FindFirstChild("Right Hip") then |
347 | - | Part.Transparency = Transparency |
347 | + | tors:FindFirstChild("Right Hip"):Destroy() |
348 | - | Part.CanCollide = false |
348 | + | makejoint(tors, RHC0, RHC1, tors, rleg, "Right Hip") |
349 | - | NoOutlines(Part) |
349 | + | rleg:FindFirstChild("touchy"):Destroy() |
350 | end | |
351 | - | local Mesh = Instance.new("SpecialMesh", Part) |
351 | + | if lleg and tors:FindFirstChild("Left Hip") then |
352 | - | Mesh.MeshId = "http://www.roblox.com/asset?id=" .. SpikeMeshId |
352 | + | tors:FindFirstChild("Left Hip"):Destroy() |
353 | - | Mesh.Scale = Scale |
353 | + | makejoint(tors, LHC0, LHC1, tors, lleg, "Left Hip") |
354 | lleg:FindFirstChild("touchy"):Destroy() | |
355 | - | return Mesh and Part |
355 | + | end |
356 | if tors:findFirstChild("BodyPosition")~=nil then | |
357 | tors.BodyPosition:remove() | |
358 | end | |
359 | - | CircleEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency) |
359 | + | if tors:findFirstChild("BodyGyro")~=nil then |
360 | tors.BodyGyro:remove() | |
361 | - | local Part = Instance.new("Part", Parent) |
361 | + | end |
362 | - | Part.Transparency = Transparency |
362 | + | RS = tors:FindFirstChild("Right Shoulder") |
363 | - | Part.Name = "CircleEffect" |
363 | + | LS = tors:FindFirstChild("Left Shoulder") |
364 | - | Part.Size = Vector3.new() |
364 | + | RH = tors:FindFirstChild("Right Hip") |
365 | - | Part.Anchored = true |
365 | + | LH = tors:FindFirstChild("Left Hip") |
366 | - | Part.CanCollide = false |
366 | + | RJ = hrp:FindFirstChild("RootJoint") |
367 | - | Part.Position = Position |
367 | + | N = tors:FindFirstChild("Neck") |
368 | - | Part.BrickColor = BrickColor.new(Brickcolor) |
368 | + | end |
369 | - | Part.Material = Material |
369 | + | |
370 | - | NoOutlines(Part) |
370 | + | function makegloo(paren, co, ci, parto, parti, nam) |
371 | local gloo = Instance.new("Glue") | |
372 | - | local Mesh = Instance.new("SpecialMesh", Part) |
372 | + | gloo.Name = nam |
373 | - | Mesh.MeshType = "Sphere" |
373 | + | gloo.C0 = co |
374 | - | Mesh.Scale = Vector3.new(DSX, DSY, DSZ) |
374 | + | gloo.C1 = ci |
375 | gloo.Part0 = parto | |
376 | - | Services.Debris:AddItem(Part, Time) |
376 | + | gloo.Part1 = parti |
377 | gloo.Parent = paren | |
378 | end | |
379 | - | table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ}) |
379 | + | function makejoint(paren, co, ci, parto, parti, nam) |
380 | local gloo = Instance.new("Motor6D") | |
381 | gloo.Name = nam | |
382 | gloo.C0 = co | |
383 | gloo.C1 = ci | |
384 | - | BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency) |
384 | + | gloo.Part0 = parto |
385 | gloo.Part1 = parti | |
386 | - | local Part = Instance.new("Part", Parent) |
386 | + | gloo.Parent = paren |
387 | - | Part.Transparency = Transparency |
387 | + | end |
388 | - | Part.Name = "BlockEffect" |
388 | + | function maketouchy(parent, limb, cframe) |
389 | - | Part.Size = Vector3.new() |
389 | + | local pr = Instance.new("Part") |
390 | - | Part.Anchored = true |
390 | + | pr.Name = "touchy" |
391 | - | Part.Position = Position |
391 | + | pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) |
392 | - | Part.CanCollide = false |
392 | + | pr.Transparency = 1 |
393 | - | Part.BrickColor = BrickColor.new(Brickcolor) |
393 | + | pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) |
394 | - | Part.Material = Material |
394 | + | pr.CanCollide = true |
395 | - | NoOutlines(Part) |
395 | + | pr.Anchored = false |
396 | pr.Parent = parent | |
397 | - | local Mesh = Instance.new("BlockMesh", Part) |
397 | + | local w = Instance.new("Weld") |
398 | - | Mesh.Scale = Vector3.new(DSX, DSY, DSZ) |
398 | + | w.Part0 = pr |
399 | w.Part1 = limb | |
400 | - | Services.Debris:AddItem(Part, Time) |
400 | + | w.C0 = cframe |
401 | w.Parent = pr | |
402 | - | table.insert(Effects, {Part, "Block", Time, SX, SY, SZ}) |
402 | + | end |
403 | local clibat, spec | |
404 | local dipperhat = chr:FindFirstChild("DXD_DipperHat") | |
405 | local dipperrot | |
406 | if dipperhat then | |
407 | - | --[[ Damage function ]]-- |
407 | + | dipperrot = dipperhat.Handle.HatAttachment.Rotation |
408 | end | |
409 | ||
410 | - | function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max) |
410 | + | function epic() |
411 | if Music == false then | |
412 | - | local HitHumanoid = Hit.Parent.Humanoid |
412 | + | Music = true |
413 | local sond = Instance.new("Sound",tors) | |
414 | sond.Volume = 10 | |
415 | - | local Damage = math.random(Min, Max) |
415 | + | sond.Pitch = 1 |
416 | sond.EmitterSize = 25 | |
417 | sond.Name = "Music" | |
418 | - | coroutine.resume(coroutine.create(function() |
418 | + | sond.Looped = true |
419 | - | HitHumanoid:TakeDamage(Damage) |
419 | + | sond.SoundId = "rbxassetid://403606225" |
420 | - | end)) |
420 | + | sond:Play() |
421 | fire.Enabled = true | |
422 | - | if Type == "Shrink" then |
422 | + | else |
423 | - | MakeSFX(Hit.Parent.Torso, 209527235, 1, 1) |
423 | + | tors:findFirstChild("Music"):remove() |
424 | - | for i,v in pairs(Hit.Parent:children()) do |
424 | + | Music = false |
425 | - | if v:IsA("Part") then |
425 | + | fire.Enabled = false |
426 | - | coroutine.resume(coroutine.create(function() |
426 | + | end |
427 | - | for i = 1,100 do |
427 | + | end |
428 | - | wait() |
428 | + | |
429 | - | v.Size = v.Size - Vector3.new(0.05,0.05,0.05) |
429 | + | function Bloodthirst() |
430 | - | v.Transparency = v.Transparency + 0.05 |
430 | + | if Music == false and Berserk == false then |
431 | Music = true | |
432 | Berserk = true | |
433 | - | end)) |
433 | + | local sond = Instance.new("Sound",tors) |
434 | - | end |
434 | + | sond.Volume = 5 |
435 | sond.Pitch = 1 | |
436 | sond.EmitterSize = 25 | |
437 | - | end |
437 | + | sond.Name = "Music" |
438 | sond.Looped = true | |
439 | sond.SoundId = "rbxassetid://241184313" | |
440 | sond:Play() | |
441 | - | if Type == "Normal" then |
441 | + | for i = 1,25 do |
442 | for i2 = 1,i do | |
443 | - | local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge)) |
443 | + | local ra = math.random(4,14)/10 |
444 | - | Services.Debris:AddItem(Push, 0) |
444 | + | local p23 = Instance.new("Part",Maedl)p23.Size = Vector3.new(ra,ra,ra)p23.Material = "Neon" p23.BrickColor = BrickColor.new("Maroon") p23.CanCollide = false |
445 | - | DamageLabel(Hit.Parent, Damage, Hit) |
445 | + | p23.CFrame = chr.HumanoidRootPart.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90)) |
446 | p23.Anchored = true local B23 = Instance.new("BlockMesh",p23) | |
447 | - | elseif Type == "Ranged" then |
447 | + | end |
448 | - | local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge)) |
448 | + | wait() |
449 | - | Services.Debris:AddItem(Push, 0) |
449 | + | |
450 | - | DamageLabel(Hit.Parent, Damage, Hit) |
450 | + | for i,v in pairs (Maedl:children()) do |
451 | v.Anchored = false | |
452 | - | elseif Type == "Impale" then |
452 | + | local BP = Instance.new("BodyPosition",v)BP.P = 100000 BP.maxForce = Vector3.new(math.huge,math.huge,math.huge)v:findFirstChild("BodyPosition").Position = tors.Position |
453 | end | |
454 | - | local Spike = CreateSpike(Services.Workspace, "D e a t h", "Black", Vector3.new(), "SmoothPlastic", 0, Vector3.new(1,20,1)) |
454 | + | wait(1) |
455 | - | Spike.Anchored = true |
455 | + | for i,v in pairs (Maedl:children()) do |
456 | - | Spike.Rotation = Vector3.new(math.random(-50,50), 0 , math.random(-50,50)) |
456 | + | v:findFirstChild("BodyPosition").maxForce = Vector3.new(20000,20000,20000) |
457 | - | Spike.Position = Hit.Parent.Torso.Position |
457 | + | v:findFirstChild("BodyPosition").Position = tors.Position+Vector3.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)) |
458 | v:findFirstChild("Mesh").Scale = Vector3.new(12,12,12)game.Debris:AddItem(v,0.4) | |
459 | end | |
460 | - | Services.Debris:AddItem(Spike, 30) |
460 | + | local Blood = Instance.new("ParticleEmitter", tors) |
461 | Blood.Enabled = false | |
462 | - | Hit.Parent:BreakJoints() |
462 | + | Blood.Lifetime = NumberRange.new(0.4) |
463 | - | Hit.Parent.Torso.Position = Spike.Position + Vector3.new(0,5,0) |
463 | + | Blood.RotSpeed = NumberRange.new(0) |
464 | - | Hit.Parent.Torso.Anchored = true |
464 | + | Blood.Acceleration = Vector3.new(0,-10,0) |
465 | Blood.Rate = 100 | |
466 | - | MakeSFX(Spike, 306247724, 1,1) |
466 | + | Blood.VelocitySpread = 360 |
467 | - | MakeSFX(Hit.Parent.Torso, 209527175, 10,1) |
467 | + | Blood.Rotation = NumberRange.new(-360,360) |
468 | - | elseif Type == "Knockdown" then |
468 | + | Blood.Name = "Blood" |
469 | Blood.LightEmission = 1 | |
470 | - | |
470 | + | Blood.LockedToPart = true |
471 | - | local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge)) |
471 | + | Blood.Texture = "http://www.roblox.com/asset/?id=513989292" |
472 | - | DamageLabel(Hit.Parent, Damage, Hit) |
472 | + | Blood.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 7), NumberSequenceKeypoint.new(1, 0)}) |
473 | - | Services.Debris:AddItem(Push, 0.3) |
473 | + | Blood.ZOffset = 4 Blood.Enabled = true |
474 | Blood.Enabled = true | |
475 | - | coroutine.resume(coroutine.create(function() |
475 | + | else |
476 | tors:findFirstChild("Music"):remove() | |
477 | - | HitHumanoid.PlatformStand = true |
477 | + | Music = false |
478 | - | wait(1) |
478 | + | Berserk = false |
479 | - | HitHumanoid.PlatformStand = false |
479 | + | tors:findFirstChild("Blood").Enabled = false |
480 | end | |
481 | end | |
482 | - | end)) |
482 | + | |
483 | function bat() | |
484 | if selected == false or activu == true then | |
485 | - | if HitSFX == "Penetration" then |
485 | + | return |
486 | end | |
487 | - | MakeSFX(Hit, 199149269, 1 , 1) |
487 | + | if batting == false then |
488 | batting = true | |
489 | - | elseif HitSFX == "Punch" then |
489 | + | do |
490 | local bmod = Instance.new("Model") | |
491 | - | MakeSFX(Hit, 278062209, 1 , 1) |
491 | + | bmod.Name = "bmodel" |
492 | bmod.Parent = chr | |
493 | local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
494 | local hmes = makemesh("Head", Vector3.new(1, 9, 1), nil, hnd) | |
495 | local hwel = makeweld(hnd, hnd, rarm, ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0), nil) | |
496 | local pt1 = makepart("Bright yellow", "pt1", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
497 | local p1m = makemesh("Head", Vector3.new(1.5, 1.5, 1.5), nil, pt1) | |
498 | local p1w = makeweld(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), nil) | |
499 | - | function DamageLabel(HitCharacter, DamageDealt, Hit) |
499 | + | local pt2 = makepart("Bright yellow", "pt2", 0, 1, "SmoothPlastic", bmod, rarm.CFrame) |
500 | local p2m = makemesh("FileMesh", Vector3.new(0.375, 0.375, 0.375), "rbxassetid://250640098", pt2) | |
501 | - | local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block") |
501 | + | p2m.TextureId = "rbxassetid://250639536" |
502 | - | DamageShowingPart.Position = HitCharacter.Head.Position |
502 | + | local p2w = makeweld(pt2, pt2, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), nil) |
503 | local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
504 | - | local DamageGui = Instance.new("BillboardGui", DamageShowingPart) |
504 | + | local p3m = makemesh("Head", Vector3.new(1.5, 1.5, 1.5), nil, pt3) |
505 | - | DamageGui.Name = "Damage" |
505 | + | local p3w = makeweld(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), nil) |
506 | - | DamageGui.AlwaysOnTop = true |
506 | + | local pt4 = makepart("Bright yellow", "pt4", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) |
507 | - | DamageGui.Size = UDim2.new(5, 0, 5, 0) |
507 | + | local p4m = makemesh("FileMesh", Vector3.new(0.025, 0.025, 0.025), "rbxassetid://703458158", pt4) |
508 | local p4w = makeweld(pt4, pt4, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), nil) | |
509 | - | local DamageNumber = Instance.new("TextLabel", DamageGui) |
509 | + | local pt5 = makepart("Bright yellow", "pt5", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) |
510 | - | DamageNumber.Size = UDim2.new(1,0,1,0) |
510 | + | local p5m = makemesh("Cylinder", Vector3.new(21.5, 3.125, 3.125), nil, pt5) |
511 | - | if Hit.Parent:FindFirstChild("Head") then |
511 | + | local p5w = makeweld(pt5, pt5, hnd, ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), nil) |
512 | - | DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color |
512 | + | local pt6 = makepart("Bright yellow", "pt6", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) |
513 | - | DamageNumber.TextColor3 = Hit.BrickColor.Color |
513 | + | local p6m = makemesh("Head", Vector3.new(3.25, 3.25, 3.25), nil, pt6) |
514 | local p6w = makeweld(pt6, pt6, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), nil) | |
515 | - | DamageNumber.TextStrokeTransparency = 0 |
515 | + | local pt7 = makepart("Bright yellow", "pt7", 0, 1, "SmoothPlastic", bmod, rarm.CFrame) |
516 | - | DamageNumber.BackgroundTransparency = 1 |
516 | + | local p7m = makemesh("FileMesh", Vector3.new(0.95, 0.95, 0.95), "rbxassetid://272942659", pt7) |
517 | - | DamageNumber.Font = "SourceSansBold" |
517 | + | p7m.TextureId = "rbxassetid://272942750" |
518 | - | DamageNumber.TextScaled = true |
518 | + | local p7w = makeweld(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), nil) |
519 | - | DamageNumber.Text = DamageDealt |
519 | + | local pt8 = Instance.new("Part",chr)pt8.Transparency =1 pt8.CanCollide = false pt8.Anchored = false pt8.Size = Vector3.new(6,1,1) |
520 | local w23 = Instance.new("Weld",pt8)w23.Part0 = pt8 w23.Part1 = pt5 | |
521 | - | local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart) |
521 | + | local swingwoo = Instance.new("Sound") |
522 | - | BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge) |
522 | + | swingwoo.SoundId = "rbxassetid://10209640" |
523 | - | BodyVelocity.Velocity = Vector3.new(0,2,0) |
523 | + | swingwoo.Pitch = rd2(10, 11) / 10 |
524 | swingwoo.Name = "sweae" | |
525 | - | Services.Debris:AddItem(DamageShowingPart, 3) |
525 | + | swingwoo.Volume = 1 |
526 | swingwoo.Parent = hrp | |
527 | clibat = tool.Activated:connect(function() | |
528 | - | end |
528 | + | if selected == false or activu == true or ragged == true then |
529 | return | |
530 | - | function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback) |
530 | + | end |
531 | - | for _,WorkspaceChildren in pairs(workspace:children()) do |
531 | + | activu = true |
532 | if Combo == 1 then | |
533 | - | local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid") |
533 | + | for _ = 1, 2 do |
534 | swait() | |
535 | - | if HitHumanoid ~= nil then |
535 | + | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) |
536 | - | local Hit = WorkspaceChildren:findFirstChild("Torso") |
536 | + | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
537 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) | |
538 | - | if Hit ~= nil then |
538 | + | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
539 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) | |
540 | - | local Target = Hit.Position - Part.Position |
540 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
541 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
542 | - | local Magnitude = Target.magnitude |
542 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
543 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
544 | - | if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then |
544 | + | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
545 | end | |
546 | - | local HitBlock = Hit.Parent:FindFirstChild("Block") |
546 | + | swingwoo:Play() |
547 | for X = 1, 4 do | |
548 | - | if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then |
548 | + | swait() |
549 | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)),25) | |
550 | - | local HitBlock2 = Hit.Parent.Block.BlockDurability |
550 | + | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7) |
551 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
552 | - | if HitBlock2.Value > 15 then |
552 | + | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) |
553 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
554 | - | local HitN = math.random(1,5) |
554 | + | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) |
555 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
556 | - | HitBlock2.Value = HitBlock2.Value - 15 |
556 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) |
557 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
558 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
559 | - | if HitN == 1 then |
559 | + | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
560 | - | MakeSFX(Hit ,199148971, 0.5, 1) |
560 | + | |
561 | Combo = 2 | |
562 | elseif Combo == 2 then | |
563 | - | if HitN == 2 then |
563 | + | for _ = 1, 2 do |
564 | - | MakeSFX(Hit ,199149025, 0.5, 1) |
564 | + | swait() |
565 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(15), rd(25), rd(60)), 0.7) | |
566 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
567 | - | if HitN == 3 then |
567 | + | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(35), rd(-35), rd(179)), 0.7) |
568 | - | MakeSFX(Hit ,199149072, 0.5, 1) |
568 | + | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
569 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-35), rd(35), rd(30)), 0.7) | |
570 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
571 | - | if HitN == 4 then |
571 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) |
572 | - | MakeSFX(Hit ,199149109, 0.5, 1) |
572 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
573 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-35), rd(-110)), 0.7) | |
574 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
575 | - | if HitN == 5 then |
575 | + | end |
576 | - | MakeSFX(Hit ,199149119, 0.5, 1) |
576 | + | swingwoo:Play() |
577 | for X = 1, 4 do | |
578 | - | return |
578 | + | swait() |
579 | - | end |
579 | + | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)), 25) |
580 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(78), rd(-15), rd(-45)), 0.7) | |
581 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
582 | - | DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max) |
582 | + | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(15), rd(35)), 0.7) |
583 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
584 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-120), rd(15), rd(25)), 0.7) | |
585 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
586 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-35), rd(80)), 0.7) | |
587 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
588 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
589 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
590 | end | |
591 | - | |
591 | + | |
592 | elseif Combo == 3 then | |
593 | for _ = 1, 2 do | |
594 | - | local Cloak = Instance.new("Part", Character) |
594 | + | swait() |
595 | - | Cloak.Name = "Cloak" |
595 | + | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(0), rd(25), rd(0)), 0.7) |
596 | - | Cloak.CanCollide = false |
596 | + | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-56), rd(0), rd(0)), 0.7) |
597 | - | Cloak.BrickColor = BrickColor.new("Institutional white") |
597 | + | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-25), rd(199)), 0.7) |
598 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
599 | - | local CloakMesh = Instance.new("SpecialMesh", Cloak) |
599 | + | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-35), rd(35), rd(30)), 0.7) |
600 | - | CloakMesh.MeshId = "http://www.roblox.com/asset?id=16150814" |
600 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
601 | - | CloakMesh.TextureId = "http://www.roblox.com/asset?id=16150799" |
601 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) |
602 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
603 | - | local CloakWeld = CreateWeld(Cloak, CFrame.new(0,0,0) * CFrame.Angles(0,0,0), Head , Cloak, "ArkusToCharacter") |
603 | + | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-35), rd(-110)), 0.7) |
604 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
605 | - | for i,v in pairs(Character:children()) do |
605 | + | end |
606 | - | if v:IsA("Accessory") then |
606 | + | swingwoo:Play() |
607 | - | v:Remove() |
607 | + | for X = 1, 4 do |
608 | - | elseif v:IsA("Shirt") then |
608 | + | swait() |
609 | - | v:Remove() |
609 | + | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)), 25) |
610 | - | elseif v:IsA("Pants") then |
610 | + | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(0), rd(-15), rd(0)), 0.7) |
611 | - | v:Remove() |
611 | + | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
612 | - | elseif v:IsA("BodyColors") then |
612 | + | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(15), rd(35)), 0.7) |
613 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
614 | - | Head.BrickColor =BrickColor.new("Really black") |
614 | + | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-120), rd(15), rd(25)), 0.7) |
615 | - | Torso.BrickColor = BrickColor.new("Really black") |
615 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
616 | - | Right_Arm.BrickColor = BrickColor.new("Really black") |
616 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-35), rd(80)), 0.7) |
617 | - | Right_Leg.BrickColor = BrickColor.new("Really black") |
617 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
618 | - | Left_Arm.BrickColor = BrickColor.new("Really black") |
618 | + | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) |
619 | - | Left_Leg.BrickColor = BrickColor.new("Really black") |
619 | + | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
620 | end | |
621 | - | v.HeadColor = BrickColor.new("Really black") |
621 | + | Combo = 4 |
622 | - | v.TorsoColor = BrickColor.new("Really black") |
622 | + | else Combo = 1 |
623 | - | v.RightArmColor = BrickColor.new("Really black") |
623 | + | for _ = 1, 2 do |
624 | - | v.LeftArmColor = BrickColor.new("Really black") |
624 | + | swait() |
625 | - | v.RightLegColor = BrickColor.new("Really black") |
625 | + | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(20), rd(10), rd(-40)), 0.7) |
626 | - | v.LeftLegColor = BrickColor.new("Really black") |
626 | + | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
627 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(129)), 0.7) | |
628 | - | end |
628 | + | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
629 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(40), rd(40), rd(20)), 0.7) | |
630 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
631 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
632 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
633 | - | --[[ CLerp Declarations ]]-- |
633 | + | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) |
634 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
635 | - | function clerp(a,b,t) |
635 | + | end |
636 | - | local qa = {QuaternionFromCFrame(a)} |
636 | + | swingwoo:Play() |
637 | - | local qb = {QuaternionFromCFrame(b)} |
637 | + | for X = 1, 4 do |
638 | - | local ax, ay, az = a.x, a.y, a.z |
638 | + | swait() |
639 | - | local bx, by, bz = b.x, b.y, b.z |
639 | + | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)), 1) |
640 | - | local _t = 1-t |
640 | + | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(10), rd(-30)), 0.7) |
641 | - | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) |
641 | + | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
642 | - | end |
642 | + | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) |
643 | - | |
643 | + | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
644 | - | function QuaternionFromCFrame(cf) -- dis one |
644 | + | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) |
645 | - | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
645 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
646 | - | local trace = m00 + m11 + m22 |
646 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) |
647 | - | if trace > 0 then |
647 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
648 | - | local s = math.sqrt(1 + trace) |
648 | + | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) |
649 | - | local recip = 0.5/s |
649 | + | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
650 | - | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 |
650 | + | end |
651 | - | else |
651 | + | end |
652 | - | local i = 0 |
652 | + | activu = false |
653 | - | if m11 > m00 then |
653 | + | end) |
654 | - | i = 1 |
654 | + | spec = mouse.KeyDown:connect(function(keya) |
655 | - | end |
655 | + | if selected == false or activu == true or ragged == true then |
656 | - | if m22 > (i == 0 and m00 or m11) then |
656 | + | return |
657 | - | i = 2 |
657 | + | end |
658 | - | end |
658 | + | |
659 | - | if i == 0 then |
659 | + | if keya == "e" then |
660 | - | local s = math.sqrt(m00-m11-m22+1) |
660 | + | activu = true |
661 | - | local recip = 0.5/s |
661 | + | local speed = human.WalkSpeed |
662 | - | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip |
662 | + | human.WalkSpeed = 0 |
663 | - | elseif i == 1 then |
663 | + | human:SetStateEnabled(3, false) |
664 | - | local s = math.sqrt(m11-m22-m00+1) |
664 | + | local function expa() |
665 | - | local recip = 0.5/s |
665 | + | if Berserk == false then |
666 | - | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip |
666 | + | for _ = 1, 3 do |
667 | - | elseif i == 2 then |
667 | + | swait() |
668 | - | local s = math.sqrt(m22-m00-m11+1) |
668 | + | hmes.Scale = hmes.Scale:lerp(Vector3.new(6, 27, 6), 0.7) |
669 | - | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip |
669 | + | p1m.Scale = p1m.Scale:lerp(Vector3.new(7.5, 7.5, 7.5), 0.7) |
670 | - | end |
670 | + | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), 0.7) |
671 | - | end |
671 | + | p2m.Scale = p2m.Scale:lerp(Vector3.new(1.125, 1.125, 1.125), 0.7) |
672 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 3.6750000000000003, 0.22499999999999998), 0.7) | |
673 | - | |
673 | + | p3m.Scale = p3m.Scale:lerp(Vector3.new(7.5, 7.5, 7.5), 0.7) |
674 | - | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
674 | + | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), 0.7) |
675 | - | local xs, ys, zs = x + x, y + y, z + z |
675 | + | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.07500000000000001, 0.07500000000000001, 0.07500000000000001), 0.7) |
676 | - | local wx, wy, wz = w*xs, w*ys, w*zs |
676 | + | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -3.75, 0), 0.7) |
677 | - | local xx = x*xs |
677 | + | p5m.Scale = p5m.Scale:lerp(Vector3.new(64.5, 18.75, 18.75), 0.7) |
678 | - | local xy = x*ys |
678 | + | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -12.075000000000001, 0), 0.7) |
679 | - | local xz = x*zs |
679 | + | p6m.Scale = p6m.Scale:lerp(Vector3.new(19.5, 19.5, 19.5), 0.7) |
680 | - | local yy = y*ys |
680 | + | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -18.15, 0), 0.7) |
681 | - | local yz = y*zs |
681 | + | p7m.Scale = p7m.Scale:lerp(Vector3.new(2.8499999999999996, 2.8499999999999996, 2.8499999999999996), 0.7) |
682 | - | local zz = z*zs |
682 | + | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -18.6, 0), 0.7) |
683 | - | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) |
683 | + | end |
684 | for _ = 1, 5 do | |
685 | - | |
685 | + | swait() |
686 | - | function QuaternionSlerp(a, b, t) |
686 | + | hmes.Scale = hmes.Scale:lerp(Vector3.new(4, 18, 4), 0.7) |
687 | - | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] |
687 | + | p1m.Scale = p1m.Scale:lerp(Vector3.new(5, 5, 5), 0.7) |
688 | - | local startInterp, finishInterp; |
688 | + | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 2, 0), 0.7) |
689 | - | if cosTheta >= 0.0001 then |
689 | + | p2m.Scale = p2m.Scale:lerp(Vector3.new(0.75, 0.75, 0.75), 0.7) |
690 | - | if (1 - cosTheta) > 0.0001 then |
690 | + | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 2.45, 0.15), 0.7) |
691 | - | local theta = math.acos(cosTheta) |
691 | + | p3m.Scale = p3m.Scale:lerp(Vector3.new(5, 5, 5), 0.7) |
692 | - | local invSinTheta = 1/math.sin(theta) |
692 | + | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -2, 0), 0.7) |
693 | - | startInterp = math.sin((1-t)*theta)*invSinTheta |
693 | + | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.05, 0.05, 0.05), 0.7) |
694 | - | finishInterp = math.sin(t*theta)*invSinTheta |
694 | + | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -2.5, 0), 0.7) |
695 | - | else |
695 | + | p5m.Scale = p5m.Scale:lerp(Vector3.new(43, 12.5, 12.5), 0.7) |
696 | - | startInterp = 1-t |
696 | + | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -8.05, 0), 0.7) |
697 | - | finishInterp = t |
697 | + | p6m.Scale = p6m.Scale:lerp(Vector3.new(13, 13, 13), 0.7) |
698 | - | end |
698 | + | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -12.1, 0), 0.7) |
699 | - | else |
699 | + | p7m.Scale = p7m.Scale:lerp(Vector3.new(1.9, 1.9, 1.9), 0.7) |
700 | - | if (1+cosTheta) > 0.0001 then |
700 | + | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -12.4, 0), 0.7) |
701 | - | local theta = math.acos(-cosTheta) |
701 | + | end |
702 | - | local invSinTheta = 1/math.sin(theta) |
702 | + | for _ = 1, 3 do |
703 | - | startInterp = math.sin((t-1)*theta)*invSinTheta |
703 | + | swait() |
704 | - | finishInterp = math.sin(t*theta)*invSinTheta |
704 | + | hmes.Scale = hmes.Scale:lerp(Vector3.new(12, 54, 12), 0.7) |
705 | - | else |
705 | + | p1m.Scale = p1m.Scale:lerp(Vector3.new(15, 15, 15), 0.7) |
706 | - | startInterp = t-1 |
706 | + | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 6, 0), 0.7) |
707 | - | finishInterp = t |
707 | + | p2m.Scale = p2m.Scale:lerp(Vector3.new(2.25, 2.25, 2.25), 0.7) |
708 | - | end |
708 | + | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 7.3500000000000005, 0.44999999999999996), 0.7) |
709 | - | end |
709 | + | p3m.Scale = p3m.Scale:lerp(Vector3.new(15, 15, 15), 0.7) |
710 | - | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp |
710 | + | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6, 0), 0.7) |
711 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.15000000000000002, 0.15000000000000002, 0.15000000000000002), 0.7) | |
712 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -7.5, 0), 0.7) | |
713 | - | function RayCast(Pos, Dir, Max, Ignore) |
713 | + | p5m.Scale = p5m.Scale:lerp(Vector3.new(129, 37.5, 37.5), 0.7) |
714 | - | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) |
714 | + | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -24.150000000000002, 0), 0.7) |
715 | - | end |
715 | + | p6m.Scale = p6m.Scale:lerp(Vector3.new(39, 39, 39), 0.7) |
716 | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -36.3, 0), 0.7) | |
717 | p7m.Scale = p7m.Scale:lerp(Vector3.new(5.699999999999999, 5.699999999999999, 5.699999999999999), 0.7) | |
718 | - | function Bars() |
718 | + | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -37.2, 0), 0.7) |
719 | end | |
720 | - | --[[ Mana Bar ]]-- |
720 | + | for _ = 1, 5 do |
721 | - | if Destruction ~= MaxDestruction then |
721 | + | swait() |
722 | hmes.Scale = hmes.Scale:lerp(Vector3.new(8, 36, 8), 0.7) | |
723 | - | Destruction = Destruction + 1 |
723 | + | p1m.Scale = p1m.Scale:lerp(Vector3.new(10, 10, 10), 0.7) |
724 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 4, 0), 0.7) | |
725 | p2m.Scale = p2m.Scale:lerp(Vector3.new(1.5, 1.5, 1.5), 0.7) | |
726 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 4.9, 0.3), 0.7) | |
727 | - | if Destruction >= MaxDestruction then |
727 | + | p3m.Scale = p3m.Scale:lerp(Vector3.new(10, 10, 10), 0.7) |
728 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -4, 0), 0.7) | |
729 | - | Destruction = Destruction |
729 | + | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.1, 0.1, 0.1), 0.7) |
730 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -5, 0), 0.7) | |
731 | p5m.Scale = p5m.Scale:lerp(Vector3.new(86, 25, 25), 0.7) | |
732 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -16.1, 0), 0.7) | |
733 | p6m.Scale = p6m.Scale:lerp(Vector3.new(26, 26, 26), 0.7) | |
734 | - | ManaBarText.Text = "<{[ Destruction ]}> <|"..Destruction.."|> <{[ Destruction ]}>" |
734 | + | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -24.2, 0), 0.7) |
735 | p7m.Scale = p7m.Scale:lerp(Vector3.new(3.8, 3.8, 3.8), 0.7) | |
736 | - | ManaBarP2.Size = UDim2.new(Destruction / Destruction,0,0,20) |
736 | + | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -24.8, 0), 0.7) |
737 | end | |
738 | for _ = 1, 3 do | |
739 | - | local EyeReference = CreatePart(Character, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block") |
739 | + | swait() |
740 | - | local EyeReferenceWeld = CreateWeld(EyeReference, CFrame.new(0.15,-0.1,-0.7), EyeReference, Head) |
740 | + | hmes.Scale = hmes.Scale:lerp(Vector3.new(18, 81, 18), 0.7) |
741 | p1m.Scale = p1m.Scale:lerp(Vector3.new(22.5, 22.5, 22.5), 0.7) | |
742 | - | coroutine.resume(coroutine.create(function() |
742 | + | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 9, 0), 0.7) |
743 | p2m.Scale = p2m.Scale:lerp(Vector3.new(3.375, 3.375, 3.375), 0.7) | |
744 | - | while wait(3) do |
744 | + | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 11.025, 0.6749999999999999), 0.7) |
745 | p3m.Scale = p3m.Scale:lerp(Vector3.new(22.5, 22.5, 22.5), 0.7) | |
746 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -9, 0), 0.7) | |
747 | - | CircleEffect(EyeReference.Position, Services.Workspace, 1, 1, 1, 1, 1, 1, 0.5, "Bright red", "Neon", 0.5) |
747 | + | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.225, 0.225, 0.225), 0.7) |
748 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -11.25, 0), 0.7) | |
749 | p5m.Scale = p5m.Scale:lerp(Vector3.new(193.5, 56.25, 56.25), 0.7) | |
750 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -36.225, 0), 0.7) | |
751 | p6m.Scale = p6m.Scale:lerp(Vector3.new(58.5, 58.5, 58.5), 0.7) | |
752 | - | end)) |
752 | + | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -54.449999999999996, 0), 0.7) |
753 | - | --[[ Attacks ]]-- |
753 | + | p7m.Scale = p7m.Scale:lerp(Vector3.new(5.699999999999999, 8.549999999999999, 8.549999999999999), 0.7) |
754 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -55.800000000000004, 0), 0.7) | |
755 | - | function Attack1() |
755 | + | end |
756 | - | Attacking = true |
756 | + | for _ = 1, 5 do |
757 | - | MakeSFX(EyeReference, 341336274, 1,1) |
757 | + | swait() |
758 | - | wait(0.3) |
758 | + | hmes.Scale = hmes.Scale:lerp(Vector3.new(14*2.5, 63*2.5, 14*2.5), 0.7) |
759 | - | local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block") |
759 | + | p1m.Scale = p1m.Scale:lerp(Vector3.new(17.5*2.5, 17.5*2.5, 17.5*2.5), 0.7) |
760 | - | local ReferenceWeld = CreateWeld(Reference, CFrame.new(0,0.5,-5), Reference, Root) |
760 | + | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 7*2.5, 0), 0.7) |
761 | p2m.Scale = p2m.Scale:lerp(Vector3.new(2.625*2.5, 2.625*2.5, 2.625*2.5), 0.7) | |
762 | - | local Reference2 = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block") |
762 | + | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 8.575000000000001*2.5, 0.525*2.5), 0.7) |
763 | - | local Reference2Weld = CreateWeld(Reference2, CFrame.new(0,0.5,-2), Reference2, Root) |
763 | + | p3m.Scale = p3m.Scale:lerp(Vector3.new(17.5*2.5, 17.5*2.5, 17.5*2.5), 0.7) |
764 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -7*2.5, 0), 0.7) | |
765 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.17500000000000002*2.5, 0.17500000000000002*2.5, 0.17500000000000002*2.5), 0.7) | |
766 | - | for i = 1,10 do |
766 | + | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -8.75*2.5, 0), 0.7) |
767 | p5m.Scale = p5m.Scale:lerp(Vector3.new(150.5*2.5, 43.75*2.5, 43.75*2.5), 0.7) | |
768 | - | wait() |
768 | + | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -28.175000000000004*2.5, 0), 0.7) |
769 | - | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,-1.6),0.5) |
769 | + | p6m.Scale = p6m.Scale:lerp(Vector3.new(45.5*2.5, 45.5*2.5, 45.5*2.5), 0.7) |
770 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,1.3),0.2) |
770 | + | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -42.35*2.5, 0), 0.7) |
771 | - | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3) |
771 | + | p7m.Scale = p7m.Scale:lerp(Vector3.new(6.6499999999999995*2.5, 6.6499999999999995*2.5, 6.6499999999999995*2.5), 0.7) |
772 | - | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0,0,-1.6), 0.4) |
772 | + | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -43.4*2.5, 0), 0.7) |
773 | - | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0) * CFrame.Angles(0,1.6,0),0.3) |
773 | + | end |
774 | - | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.3) |
774 | + | end |
775 | end | |
776 | for _ = 1, 9 do | |
777 | swait() | |
778 | - | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5) |
778 | + | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5) |
779 | - | wait(0.5) |
779 | + | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5) |
780 | - | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5) |
780 | + | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5) |
781 | - | wait(0.5) |
781 | + | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) |
782 | - | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5) |
782 | + | lerpz(LS, "C0", LSC0 * cf(0, 0.2, -0.2) * ang(rd(70), rd(-60), rd(-100)), 0.5) |
783 | - | wait(0.5) |
783 | + | if dipperhat then |
784 | - | CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5) |
784 | + | dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(0, 0, 0), 0.3) |
785 | - | wait(0.5) |
785 | + | end |
786 | - | MakeSFX(Reference, 306247724, 1,1) |
786 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) |
787 | - | CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5) |
787 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5) |
788 | - | ValidateDamage(Reference, 10 ,10 , 14, "Shrink", "Penetration", 5) |
788 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) |
789 | - | Attacking = false |
789 | + | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5) |
790 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
791 | end | |
792 | - | function Attack2() |
792 | + | for _ = 1, 9 do |
793 | swait() | |
794 | - | Attacking = true |
794 | + | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5) |
795 | - | Humanoid.WalkSpeed = 0 |
795 | + | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5) |
796 | - | Humanoid.JumpPower = 0 |
796 | + | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5) |
797 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
798 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(35), rd(-50), rd(-100)), 0.3) | |
799 | - | for i = 1,25 do |
799 | + | if dipperhat then |
800 | - | wait() |
800 | + | dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(15, 0, 0), 0.3) |
801 | end | |
802 | - | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(-0.5,0,0),0.2) |
802 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) |
803 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3) |
803 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5) |
804 | - | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1, 1, 0) * CFrame.Angles(3.2,0,-0.6), 0.3) |
804 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) |
805 | - | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(3.2,0,0.6), 0.3) |
805 | + | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5) |
806 | - | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2) |
806 | + | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) |
807 | - | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2) |
807 | + | end |
808 | for _ = 1, 30 do | |
809 | swait() | |
810 | lerpz(RJ, "C0", RJC0 * cf(1.1, 0.6, 0) * ang(rd(0), rd(0), rd(-120)), 0.2) | |
811 | - | MakeSFX(Torso, 142070127, 1, 1) |
811 | + | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.2) |
812 | - | ValidateDamage(Torso, 60 ,23, 26, "Knockdown", "Penetration", 15) |
812 | + | lerpz(RS, "C0", RSC0 * cf(0, -0.4, 0.2) * ang(rd(85), rd(0), rd(85)), 0.2) |
813 | - | local Hit, Position = RayCast(Torso.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,100,Character) |
813 | + | lerpz(RS, "C1", RSC1 * cf(0, -0.4, 0) * ang(rd(0), rd(0), rd(0)), 0.2) |
814 | - | if Hit ~= nil then |
814 | + | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.2) |
815 | - | local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block") |
815 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) |
816 | - | Reference.Anchored = true |
816 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.2) |
817 | - | Reference.CFrame = CFrame.new(Position) |
817 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) |
818 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.2) | |
819 | - | CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5) |
819 | + | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) |
820 | end | |
821 | - | game:GetService("Debris"):AddItem(Reference,0.1) |
821 | + | expa() |
822 | - | for i=1,50 do |
822 | + | for O = 1, 10 do |
823 | swait() | |
824 | - | local Ground = CreatePart(Services.Workspace, "Ground", Hit.BrickColor.Color, Vector3.new(math.random(1,3), math.random(1,3), math.random(1,3)), Hit.Material, 0, "Block") |
824 | + | lerpz(RJ, "C0", RJC0 * cf(0, 0.3, 0) * ang(rd(0), rd(0), rd(60)), 0.001 + O * 0.01) |
825 | - | Ground.Anchored = true |
825 | + | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.001 + O * 0.01) |
826 | - | Ground.CanCollide = true |
826 | + | lerpz(RS, "C0", RSC0 * cf(0, -0.4, 0.2) * ang(rd(85), rd(0), rd(85)), 0.001 + O * 0.01) |
827 | - | Ground.CFrame = CFrame.new(Position) * CFrame.new(math.random(-30,30), 0, math.random(-30,30)) * CFrame.Angles(math.random(-50,50),math.random(-50,50), math.random(-50,50)) |
827 | + | lerpz(RS, "C1", RSC1 * cf(0, -0.4, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) |
828 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.001 + O * 0.01) | |
829 | - | game:GetService("Debris"):AddItem(Ground,10) |
829 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) |
830 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.001 + O * 0.01) | |
831 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
832 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.001 + O * 0.01) | |
833 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
834 | - | for i = 1,25 do |
834 | + | end |
835 | - | wait() |
835 | + | local whoooo = Instance.new("Sound") |
836 | whoooo.Volume = 3 | |
837 | - | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.5) |
837 | + | whoooo.TimePosition = 0.15 |
838 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3) |
838 | + | whoooo.Pitch = 0.5 |
839 | - | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3) |
839 | + | whoooo.SoundId = "rbxassetid://320557353" |
840 | - | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3) |
840 | + | whoooo.Parent = pt5 |
841 | - | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2) |
841 | + | whoooo:Play() |
842 | - | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2) |
842 | + | game.Debris:AddItem(whoooo, 2) |
843 | if Berserk == true then | |
844 | for O = 1, 75 do | |
845 | swait() | |
846 | - | Attacking = false |
846 | + | local O2 = O*0.015 |
847 | - | Humanoid.WalkSpeed = 16 |
847 | + | hito3(pt5, 25, 40, 0.75, hrp.CFrame.rightVector * -450 + Vector3.new(0, 200, 0), Vector3.new(0, rd2(-25, 25), rd2(-160, 160)), 25) |
848 | - | Humanoid.JumpPower = 50 |
848 | + | lerpz(RJ, "C0", RJC0 * cf(0.9, -0.7, 0) * ang(rd(0), rd(0), rd(60*O*(O2/2))), 0.1 + O * 0.02) |
849 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.1 + O * 0.02) | |
850 | lerpz(RS, "C0", RSC0 * cf(0, -0.4, 0.2) * ang(rd(85), rd(0), rd(35)), 0.1 + O * 0.02) | |
851 | lerpz(RS, "C1", RSC1 * cf(0, -0.4, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.02) | |
852 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.1 + O * 0.02) | |
853 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.02) | |
854 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.1 + O * 0.02) | |
855 | - | function Attack3() |
855 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.02) |
856 | - | Humanoid.WalkSpeed = 0 |
856 | + | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.1 + O * 0.02) |
857 | - | Humanoid.JumpPower = 0 |
857 | + | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.02) |
858 | - | Attacking = true |
858 | + | hmes.Scale = hmes.Scale:lerp(Vector3.new(14*O2, 63*O2, 14*O2), 0.7) |
859 | - | wait(1) |
859 | + | p1m.Scale = p1m.Scale:lerp(Vector3.new(17.5*O2, 17.5*O2, 17.5*O2), 0.7) |
860 | - | MakeSFX(Torso, 341336274, 1, 1.2) |
860 | + | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 7*O2, 0), 0.7) |
861 | - | CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5) |
861 | + | p2m.Scale = p2m.Scale:lerp(Vector3.new(2.625*O2, 2.625*O2, 2.625*O2), 0.7) |
862 | - | wait(1) |
862 | + | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 8.575000000000001*O2, 0.525*O2), 0.7) |
863 | - | MakeSFX(Torso, 341336274, 1, 1.2) |
863 | + | p3m.Scale = p3m.Scale:lerp(Vector3.new(17.5*O2, 17.5*O2, 17.5*O2), 0.7) |
864 | - | CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5) |
864 | + | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -7*O2, 0), 0.7) |
865 | - | wait(1) |
865 | + | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.17500000000000002*O2, 0.17500000000000002*O2, 0.17500000000000002*O2), 0.7) |
866 | - | MakeSFX(Torso, 341336274, 1, 1.2) |
866 | + | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -8.75*O2, 0), 0.7) |
867 | - | CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5) |
867 | + | p5m.Scale = p5m.Scale:lerp(Vector3.new(150.5*O2, 43.75*O2, 43.75*O2), 0.7) |
868 | - | ValidateDamage(Torso, 60 ,0, 0, "Impale", "Penetration", 15) |
868 | + | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -28.175000000000004*O2, 0), 0.7) |
869 | - | Humanoid.WalkSpeed = 16 |
869 | + | p6m.Scale = p6m.Scale:lerp(Vector3.new(45.5*O2, 45.5*O2, 45.5*O2), 0.7) |
870 | - | Humanoid.JumpPower = 50 |
870 | + | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -42.35*O2, 0), 0.7) |
871 | - | Attacking = false |
871 | + | p7m.Scale = p7m.Scale:lerp(Vector3.new(6.6499999999999995*O2, 6.6499999999999995*O2, 6.6499999999999995*O2), 0.7) |
872 | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -43.4*O2, 0), 0.7) | |
873 | wait() | |
874 | - | Mouse.Button1Down:connect(function() |
874 | + | end |
875 | - | if not Attacking then |
875 | + | else |
876 | for O = 1, 6 do | |
877 | swait() | |
878 | hito(pt5, 25, 40, 0.75, hrp.CFrame.rightVector * -450 + Vector3.new(0, 200, 0), Vector3.new(0, rd2(-25, 25), rd2(-160, 160)), 25) | |
879 | - | Attack1() |
879 | + | lerpz(RJ, "C0", RJC0 * cf(0.9, -0.7, 0) * ang(rd(0), rd(0), rd(120)), 0.1 + O * 0.05) |
880 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.1 + O * 0.05) | |
881 | lerpz(RS, "C0", RSC0 * cf(0, -0.4, 0.2) * ang(rd(85), rd(0), rd(35)), 0.1 + O * 0.05) | |
882 | lerpz(RS, "C1", RSC1 * cf(0, -0.4, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
883 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.1 + O * 0.05) | |
884 | - | Attack2() |
884 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) |
885 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.1 + O * 0.05) | |
886 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
887 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.1 + O * 0.05) | |
888 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
889 | - | Attack3() |
889 | + | end |
890 | - | Combo = 1 |
890 | + | |
891 | for O = 1, 13 do | |
892 | - | end |
892 | + | swait() |
893 | hmes.Scale = hmes.Scale:lerp(Vector3.new(2, 9, 2), 0.05 + O * 0.075) | |
894 | - | end) |
894 | + | p1m.Scale = p1m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075) |
895 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), 0.05 + O * 0.075) | |
896 | - | --[[ CLerp Animations ]]-- |
896 | + | p2m.Scale = p2m.Scale:lerp(Vector3.new(0.375, 0.375, 0.375), 0.05 + O * 0.075) |
897 | - | Change1 = 0 |
897 | + | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), 0.05 + O * 0.075) |
898 | - | Change2 = 0 |
898 | + | p3m.Scale = p3m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075) |
899 | - | Change3 = 0 |
899 | + | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), 0.05 + O * 0.075) |
900 | - | Change4 = 0 |
900 | + | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.025, 0.025, 0.025), 0.05 + O * 0.075) |
901 | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), 0.05 + O * 0.075) | |
902 | - | while true do |
902 | + | p5m.Scale = p5m.Scale:lerp(Vector3.new(21.5, 6.25, 6.25), 0.05 + O * 0.075) |
903 | - | wait() |
903 | + | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), 0.05 + O * 0.075) |
904 | p6m.Scale = p6m.Scale:lerp(Vector3.new(6.5, 6.5, 6.5), 0.05 + O * 0.075) | |
905 | - | local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude |
905 | + | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), 0.05 + O * 0.075) |
906 | - | local Velderp = Root.Velocity.y |
906 | + | p7m.Scale = p7m.Scale:lerp(Vector3.new(0.95, 0.95, 0.95), 0.05 + O * 0.075) |
907 | - | HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character) |
907 | + | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), 0.05 + O * 0.075) |
908 | lerpz(RJ, "C0", RJC0 * cf(1.1, -0.8, 0) * ang(rd(0), rd(0), rd(150)), 0.05 + O * 0.075) | |
909 | - | Bars() |
909 | + | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.05 + O * 0.075) |
910 | lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(30), rd(10)), 0.05 + O * 0.075) | |
911 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
912 | - | if Torvel < 1 and HitFloor ~= nil and Attacking == false then |
912 | + | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(20), rd(20), rd(-20)), 0.05 + O * 0.075) |
913 | - | Anim = "Idle" |
913 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) |
914 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.05 + O * 0.075) | |
915 | - | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2) |
915 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) |
916 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3) |
916 | + | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.05 + O * 0.075) |
917 | - | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3) |
917 | + | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) |
918 | - | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3) |
918 | + | end |
919 | - | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0) * CFrame.Angles(-0.1,0,0),0.2) |
919 | + | if dipperhat then |
920 | - | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0) * CFrame.Angles(-0.1,0,0),0.2) |
920 | + | dipperhat.Handle.HatAttachment.Rotation = dipperrot |
921 | end | |
922 | human.WalkSpeed = speed | |
923 | human:SetStateEnabled(3, true) | |
924 | activu = false | |
925 | - | if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then |
925 | + | end |
926 | - | Anim = "Walking" |
926 | + | if keya == "q" then |
927 | activu = true | |
928 | - | if Invert == false then |
928 | + | do |
929 | - | Change1 = Change1 + 0.1 |
929 | + | local checkkey = true |
930 | local keyingup = mouse.KeyUp:connect(function(xzx) | |
931 | - | elseif Invert == true then |
931 | + | if xzx == "q" then |
932 | checkkey = false | |
933 | - | Change1 = Change1 - 0.1 |
933 | + | end |
934 | end) | |
935 | repeat | |
936 | if Berserk == true then | |
937 | - | if Change1 > 0.5 then |
937 | + | for _ = 1, 5 do |
938 | swait() | |
939 | - | Invert = true |
939 | + | hmes.Scale = hmes.Scale:lerp(Vector3.new(8, 36, 8), 0.7) |
940 | p1m.Scale = p1m.Scale:lerp(Vector3.new(10, 10, 10), 0.7) | |
941 | - | elseif Change1 < -0.5 then |
941 | + | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 4, 0), 0.7) |
942 | p2m.Scale = p2m.Scale:lerp(Vector3.new(1.5, 1.5, 1.5), 0.7) | |
943 | - | Invert = false |
943 | + | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 4.9, 0.3), 0.7) |
944 | p3m.Scale = p3m.Scale:lerp(Vector3.new(10, 10, 10), 0.7) | |
945 | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -4, 0), 0.7) | |
946 | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.1, 0.1, 0.1), 0.7) | |
947 | - | if Attacking == false then |
947 | + | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -5, 0), 0.7) |
948 | p5m.Scale = p5m.Scale:lerp(Vector3.new(86, 25, 25), 0.7) | |
949 | - | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2) |
949 | + | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -16.1, 0), 0.7) |
950 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3) |
950 | + | p6m.Scale = p6m.Scale:lerp(Vector3.new(26, 26, 26), 0.7) |
951 | - | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -Change1) * CFrame.Angles(Change1,0,0), 0.3) |
951 | + | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -24.2, 0), 0.7) |
952 | - | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, Change1) * CFrame.Angles(-Change1,0,0), 0.3) |
952 | + | p7m.Scale = p7m.Scale:lerp(Vector3.new(3.8, 3.8, 3.8), 0.7) |
953 | - | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-Change1 / 4)*CFrame.Angles(Change1,1.6,0),0.2) |
953 | + | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -24.8, 0), 0.7) |
954 | - | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,Change1 / 4)*CFrame.Angles(-Change1,-1.6,0),0.2) |
954 | + | end |
955 | for _ = 1, 6 do | |
956 | swait() | |
957 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) | |
958 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
959 | - | if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then |
959 | + | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) |
960 | - | Anim = "Jump" |
960 | + | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
961 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) | |
962 | - | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2) |
962 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
963 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3) |
963 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) |
964 | - | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.2) * CFrame.Angles(-0.4,0,0.2), 0.3) |
964 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
965 | - | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.2) * CFrame.Angles(-0.4,0,-0.2), 0.3) |
965 | + | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) |
966 | - | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2) |
966 | + | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
967 | - | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2) |
967 | + | end |
968 | swingwoo:Play() | |
969 | for X = 1, 6 do | |
970 | swait() | |
971 | - | if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then |
971 | + | hito3(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40))) |
972 | - | Anim = "Fall" |
972 | + | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(0), rd(10)), 0.7) |
973 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
974 | - | RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2) |
974 | + | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) |
975 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3) |
975 | + | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
976 | - | Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -0.2) * CFrame.Angles(0.4,0,0.2), 0.3) |
976 | + | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) |
977 | - | Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, -0.2) * CFrame.Angles(0.4,0,-0.2), 0.3) |
977 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
978 | - | Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2) |
978 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) |
979 | - | Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2) |
979 | + | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
980 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
981 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
982 | wait() | |
983 | end | |
984 | - | if #Effects > 0 then |
984 | + | for O = 1, 13 do |
985 | - | for E = 1, #Effects do |
985 | + | swait() |
986 | - | if Effects[E]~=nil then |
986 | + | hmes.Scale = hmes.Scale:lerp(Vector3.new(2, 9, 2), 0.05 + O * 0.075) |
987 | - | local Effect = Effects[E] |
987 | + | p1m.Scale = p1m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075) |
988 | p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), 0.05 + O * 0.075) | |
989 | - | if Effect ~= nil then |
989 | + | p2m.Scale = p2m.Scale:lerp(Vector3.new(0.375, 0.375, 0.375), 0.05 + O * 0.075) |
990 | p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), 0.05 + O * 0.075) | |
991 | - | local Part = Effect[1] |
991 | + | p3m.Scale = p3m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075) |
992 | - | local Mode = Effect[2] |
992 | + | p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), 0.05 + O * 0.075) |
993 | - | local Time = Effect[3] |
993 | + | p4m.Scale = p4m.Scale:lerp(Vector3.new(0.025, 0.025, 0.025), 0.05 + O * 0.075) |
994 | - | local SizeX = Effect[4] |
994 | + | p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), 0.05 + O * 0.075) |
995 | - | local SizeY = Effect[5] |
995 | + | p5m.Scale = p5m.Scale:lerp(Vector3.new(21.5, 6.25, 6.25), 0.05 + O * 0.075) |
996 | - | local SizeZ = Effect[6] |
996 | + | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), 0.05 + O * 0.075) |
997 | p6m.Scale = p6m.Scale:lerp(Vector3.new(6.5, 6.5, 6.5), 0.05 + O * 0.075) | |
998 | - | if Effect[1].Transparency <= 1 then |
998 | + | p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), 0.05 + O * 0.075) |
999 | - | if Effect[2] == "Block" then |
999 | + | p7m.Scale = p7m.Scale:lerp(Vector3.new(0.95, 0.95, 0.95), 0.05 + O * 0.075) |
1000 | - | Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
1000 | + | p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), 0.05 + O * 0.075) |
1001 | end | |
1002 | - | Mesh = Effect[1]:FindFirstChild("Mesh") |
1002 | + | else |
1003 | - | if Mesh ~= nil then |
1003 | + | for _ = 1, 2 do |
1004 | - | Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6]) |
1004 | + | swait() |
1005 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) | |
1006 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
1007 | - | elseif Effect[2] == "Circle" then |
1007 | + | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) |
1008 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1009 | - | if Effect[1]:FindFirstChild("Mesh") ~= nil then |
1009 | + | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) |
1010 | - | Mesh=Effect[1].Mesh |
1010 | + | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
1011 | - | Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6]) |
1011 | + | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) |
1012 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1013 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
1014 | - | Effect[1].Transparency = Effect[1].Transparency + 0.05 |
1014 | + | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) |
1015 | end | |
1016 | - | else |
1016 | + | swingwoo:Play() |
1017 | for T = 1, 2 do | |
1018 | - | Part.Parent=nil |
1018 | + | swait() |
1019 | hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)), 25) | |
1020 | - | table.remove(Effects, E) |
1020 | + | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7) |
1021 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1022 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) | |
1023 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1024 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
1025 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1026 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) | |
1027 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1028 | - | end |
1028 | + | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) |
1029 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1030 | end | |
1031 | for _ = 1, 2 do | |
1032 | swait() | |
1033 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-30), rd(20), rd(0)), 0.7) | |
1034 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
1035 | lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(179)), 0.7) | |
1036 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1037 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-40), rd(20), rd(30)), 0.7) | |
1038 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1039 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
1040 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1041 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(35)), 0.7) | |
1042 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1043 | end | |
1044 | swingwoo:Play() | |
1045 | for T = 1, 2 do | |
1046 | swait() | |
1047 | if T == 2 then | |
1048 | hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)),25) | |
1049 | end | |
1050 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(40), rd(40), rd(0)), 0.7) | |
1051 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
1052 | lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(30)), 0.7) | |
1053 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1054 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
1055 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1056 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
1057 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1058 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(-65)), 0.7) | |
1059 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1060 | end | |
1061 | end | |
1062 | until not checkkey | |
1063 | keyingup:Disconnect() | |
1064 | activu = false | |
1065 | end | |
1066 | end | |
1067 | if keya == "f" then | |
1068 | activu = true | |
1069 | do | |
1070 | local speed = human.WalkSpeed | |
1071 | human.WalkSpeed = 10 | |
1072 | human:SetStateEnabled(3, false) | |
1073 | local checkkey = true | |
1074 | local chargecounter = 0 | |
1075 | local keyingup = mouse.KeyUp:connect(function(xzx) | |
1076 | if xzx == "f" then | |
1077 | checkkey = false | |
1078 | end | |
1079 | end) | |
1080 | local firederp | |
1081 | for _ = 1, 8 do | |
1082 | swait() | |
1083 | hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
1084 | lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5) | |
1085 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5) | |
1086 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5) | |
1087 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1088 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5) | |
1089 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5) | |
1090 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5) | |
1091 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1092 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5) | |
1093 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5) | |
1094 | end | |
1095 | repeat | |
1096 | swait() | |
1097 | if Berserk == true then | |
1098 | chargecounter = chargecounter + 15 | |
1099 | else | |
1100 | chargecounter = chargecounter + 1 | |
1101 | end | |
1102 | lerpz(RS, "C0", RSC0 * cf(rd2(-5, 5) / 100, rd2(-5, 5) / 100, rd2(-5, 5) / 100) * ang(rd(rd2(65, 75)), rd(rd2(-15, 5)), rd(rd2(75, 85))), 0.05 + chargecounter * 0.002) | |
1103 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(rd2(-15, -5)), rd(rd2(-75, -65)), rd(rd2(-80, -70))), 0.05 + chargecounter * 0.002) | |
1104 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.002) | |
1105 | if chargecounter > 100 and firederp == nil then | |
1106 | P = fire:clone()P.Parent = pt8 P.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)}) | |
1107 | P.Speed = NumberRange.new(5,10)P.Enabled = true P.Lifetime = NumberRange.new(0.8)P.ZOffset = 2 | |
1108 | firederp = true | |
1109 | end | |
1110 | until not checkkey or chargecounter > 450 | |
1111 | swingwoo:Play() | |
1112 | for U = 1, 10 do | |
1113 | swait() | |
1114 | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * (80 + chargecounter * 1) + Vector3.new(0, 6 + 6 * (chargecounter / 5), 0), Vector3.new(0, rd2(-25, 25) * (chargecounter / 25), rd2(-80, 80) * (chargecounter / 40)),chargecounter) | |
1115 | if chargecounter > 300 then | |
1116 | tagexplode(pt5, 25, 5) | |
1117 | elseif chargecounter > 200 then | |
1118 | tagexplode(pt5, 20, 4) | |
1119 | elseif chargecounter > 100 then | |
1120 | tagexplode(pt5, 10, 2) | |
1121 | elseif chargecounter > 50 then | |
1122 | tagexplode(pt5, 5, 1) | |
1123 | end | |
1124 | if firederp == true then | |
1125 | pt8:findFirstChild("Fire"):remove() | |
1126 | firederp = nil | |
1127 | end | |
1128 | hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
1129 | lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6) | |
1130 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6) | |
1131 | lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4) | |
1132 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4) | |
1133 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4) | |
1134 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4) | |
1135 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6) | |
1136 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
1137 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6) | |
1138 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6) | |
1139 | end | |
1140 | swait(10) | |
1141 | hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0) | |
1142 | keyingup:Disconnect() | |
1143 | human.WalkSpeed = speed | |
1144 | human:SetStateEnabled(3, true) | |
1145 | activu = false | |
1146 | end | |
1147 | end | |
1148 | if keya == "h" then | |
1149 | activu = true | |
1150 | do | |
1151 | local speed = human.WalkSpeed | |
1152 | human.WalkSpeed = 10 | |
1153 | human:SetStateEnabled(3, false) | |
1154 | local checkkey = true | |
1155 | local chargecounter = 0 | |
1156 | local keyingup = mouse.KeyUp:connect(function(xzx) | |
1157 | if xzx == "h" then | |
1158 | checkkey = false | |
1159 | end | |
1160 | end) | |
1161 | local firederp | |
1162 | for _ = 1, 8 do | |
1163 | swait() | |
1164 | hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
1165 | lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5) | |
1166 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5) | |
1167 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5) | |
1168 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1169 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5) | |
1170 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5) | |
1171 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5) | |
1172 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1173 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5) | |
1174 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5) | |
1175 | end | |
1176 | repeat | |
1177 | swait() | |
1178 | if Berserk == true then | |
1179 | chargecounter = chargecounter + 10 | |
1180 | else | |
1181 | chargecounter = chargecounter + 1 | |
1182 | end | |
1183 | Lightningz(pt8.Position+Vector3.new(math.random(-chargecounter/100,chargecounter/100),math.random(-chargecounter/100,chargecounter/100),math.random((-chargecounter*6)/100,(chargecounter*6)/100)), pt8.Position+Vector3.new(math.random(-chargecounter/100,chargecounter/100),math.random(-chargecounter/100,chargecounter/100),math.random((-chargecounter*6)/100,(chargecounter*6)/100)), 0.05, 8, game.Workspace) | |
1184 | lerpz(RS, "C0", RSC0 * cf(rd2(-5, 5) / 100, rd2(-5, 5) / 100, rd2(-5, 5) / 100) * ang(rd(rd2(65, 75)), rd(rd2(-15, 5)), rd(rd2(75, 85))), 0.05 + chargecounter * 0.002) | |
1185 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(rd2(-15, -5)), rd(rd2(-75, -65)), rd(rd2(-80, -70))), 0.05 + chargecounter * 0.002) | |
1186 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.002) | |
1187 | until not checkkey or chargecounter > 450 | |
1188 | swingwoo:Play() | |
1189 | for U = 1, 10 do | |
1190 | swait() | |
1191 | hito4(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * (80 + chargecounter * 1) + Vector3.new(0, 6 + 6 * (chargecounter / 5), 0), Vector3.new(0, rd2(-25, 25) * (chargecounter / 25), rd2(-80, 80) * (chargecounter / 40)),chargecounter) | |
1192 | if chargecounter > 300 then | |
1193 | tagexplode(pt5, 25, 5) | |
1194 | elseif chargecounter > 200 then | |
1195 | tagexplode(pt5, 20, 4) | |
1196 | elseif chargecounter > 100 then | |
1197 | tagexplode(pt5, 10, 2) | |
1198 | elseif chargecounter > 50 then | |
1199 | tagexplode(pt5, 5, 1) | |
1200 | end | |
1201 | if firederp == true then | |
1202 | pt8:findFirstChild("Fire"):remove() | |
1203 | firederp = nil | |
1204 | end | |
1205 | hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
1206 | lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6) | |
1207 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6) | |
1208 | lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4) | |
1209 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4) | |
1210 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4) | |
1211 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4) | |
1212 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6) | |
1213 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
1214 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6) | |
1215 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6) | |
1216 | end | |
1217 | swait(10) | |
1218 | hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0) | |
1219 | keyingup:Disconnect() | |
1220 | human.WalkSpeed = speed | |
1221 | human:SetStateEnabled(3, true) | |
1222 | activu = false | |
1223 | end | |
1224 | end | |
1225 | if keya == "t" then | |
1226 | activu = true | |
1227 | do | |
1228 | local speed = human.WalkSpeed | |
1229 | human.WalkSpeed = 10 | |
1230 | human:SetStateEnabled(3, false) | |
1231 | local checkkey = true | |
1232 | local chargecounter = 0 | |
1233 | local keyingup = mouse.KeyUp:connect(function(xzx) | |
1234 | if xzx == "t" then | |
1235 | checkkey = false | |
1236 | end | |
1237 | end) | |
1238 | local firederp | |
1239 | for _ = 1, 8 do | |
1240 | swait() | |
1241 | hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
1242 | lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5) | |
1243 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5) | |
1244 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5) | |
1245 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1246 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5) | |
1247 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5) | |
1248 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5) | |
1249 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1250 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5) | |
1251 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5) | |
1252 | end | |
1253 | repeat | |
1254 | swait() | |
1255 | if Berserk == true then | |
1256 | chargecounter = chargecounter + 15 | |
1257 | else | |
1258 | chargecounter = chargecounter + 1 | |
1259 | end | |
1260 | lerpz(RS, "C0", RSC0 * cf(rd2(-5, 5) / 100, rd2(-5, 5) / 100, rd2(-5, 5) / 100) * ang(rd(rd2(65, 75)), rd(rd2(-15, 5)), rd(rd2(75, 85))), 0.05 + chargecounter * 0.002) | |
1261 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(rd2(-15, -5)), rd(rd2(-75, -65)), rd(rd2(-80, -70))), 0.05 + chargecounter * 0.002) | |
1262 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.002) | |
1263 | if chargecounter > 100 and firederp == nil then | |
1264 | P = fire:clone()P.Parent = pt8 P.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)}) | |
1265 | P.Speed = NumberRange.new(5,10)P.Enabled = true P.Lifetime = NumberRange.new(0.8)P.ZOffset = 2 | |
1266 | firederp = true | |
1267 | end | |
1268 | until not checkkey or chargecounter > 450 | |
1269 | swingwoo:Play() | |
1270 | for U = 1, 10 do | |
1271 | swait() | |
1272 | hito2(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * (80 + chargecounter * 1) + Vector3.new(0, 6 + 6 * (chargecounter / 5), 0), Vector3.new(0, rd2(-25, 25) * (chargecounter / 25), rd2(-80, 80) * (chargecounter / 40)), 1) | |
1273 | if chargecounter > 300 then | |
1274 | tagexplode(pt5, 25, 5) | |
1275 | elseif chargecounter > 200 then | |
1276 | tagexplode(pt5, 20, 4) | |
1277 | elseif chargecounter > 100 then | |
1278 | tagexplode(pt5, 10, 2) | |
1279 | elseif chargecounter > 50 then | |
1280 | tagexplode(pt5, 5, 1) | |
1281 | end | |
1282 | if firederp == true then | |
1283 | pt8:findFirstChild("Fire"):remove() | |
1284 | firederp = nil | |
1285 | end | |
1286 | hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
1287 | lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6) | |
1288 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6) | |
1289 | lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4) | |
1290 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4) | |
1291 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4) | |
1292 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4) | |
1293 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6) | |
1294 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
1295 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6) | |
1296 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6) | |
1297 | end | |
1298 | batting = false | |
1299 | clibat:Disconnect() | |
1300 | spec:Disconnect() | |
1301 | hrp.sweae:Destroy() | |
1302 | local batmod = chr:FindFirstChild("bmodel") | |
1303 | batmod.hnd.Weld:Destroy() | |
1304 | batmod.PrimaryPart = batmod.hnd | |
1305 | batmod:SetPrimaryPartCFrame(rarm.CFrame * ang(rd(-90), rd(0), rd(0)) * cf(0, 0, -1)) | |
1306 | for _, A in pairs(batmod:GetChildren()) do | |
1307 | if A.ClassName == "Part" then | |
1308 | A.CanCollide = true | |
1309 | A.Anchored = false | |
1310 | end | |
1311 | end | |
1312 | batmod.Parent = workspace | |
1313 | game.Debris:AddItem(batmod, 8) | |
1314 | hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0) | |
1315 | keyingup:Disconnect() | |
1316 | human.WalkSpeed = speed | |
1317 | human:SetStateEnabled(3, true) | |
1318 | activu = false | |
1319 | end | |
1320 | end | |
1321 | end) | |
1322 | end | |
1323 | elseif batting == true then | |
1324 | batting = false | |
1325 | clibat:Disconnect() | |
1326 | spec:Disconnect() | |
1327 | hrp.sweae:Destroy() | |
1328 | local batmod = chr:FindFirstChild("bmodel") | |
1329 | batmod.hnd.Weld:Destroy() | |
1330 | batmod.PrimaryPart = batmod.hnd | |
1331 | batmod:SetPrimaryPartCFrame(rarm.CFrame * ang(rd(-90), rd(0), rd(0)) * cf(0, 0, -1)) | |
1332 | for _, A in pairs(batmod:GetChildren()) do | |
1333 | if A.ClassName == "Part" then | |
1334 | A.CanCollide = true | |
1335 | A.Anchored = false | |
1336 | end | |
1337 | end | |
1338 | batmod.Parent = workspace | |
1339 | game.Debris:AddItem(batmod, 8) | |
1340 | end | |
1341 | end | |
1342 | local movin = false | |
1343 | local cliham, hamspec | |
1344 | function ham() | |
1345 | if batting == false then | |
1346 | batting = true | |
1347 | do | |
1348 | local bmod = Instance.new("Model") | |
1349 | bmod.Name = "bmodel" | |
1350 | bmod.Parent = chr | |
1351 | local makemotor = function(parent, p0, p1, c0, c1) | |
1352 | local wel = Instance.new("Motor6D") | |
1353 | wel.Part0 = p0 | |
1354 | wel.Part1 = p1 | |
1355 | wel.C0 = c0 | |
1356 | if c1 ~= nil then | |
1357 | wel.C1 = c1 | |
1358 | end | |
1359 | wel.Parent = parent | |
1360 | return wel | |
1361 | end | |
1362 | local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1363 | hnd.Anchored = true | |
1364 | local hmes = makemesh("Head", Vector3.new(5, 30, 5), nil, hnd) | |
1365 | movin = true | |
1366 | hnd.CFrame = hrp.CFrame | |
1367 | coroutine.resume(coroutine.create(function() | |
1368 | while hnd.Anchored == true do | |
1369 | swait() | |
1370 | if movin then | |
1371 | hnd.CFrame = hnd.CFrame:lerp(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, 11, 0), 0.65) | |
1372 | end | |
1373 | end | |
1374 | end)) | |
1375 | local pt1 = makepart("Br. yellowish green", "pt1", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1376 | local p1m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt1) | |
1377 | local p1w = makemotor(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), nil) | |
1378 | local pt2 = makepart("Br. yellowish green", "pt2", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1379 | local p2m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt2) | |
1380 | local p2w = makemotor(pt2, pt2, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), nil) | |
1381 | local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1382 | local p3m = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, pt3) | |
1383 | local p3w = makemotor(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3.75, 0), nil) | |
1384 | local pt4 = makepart("Br. yellowish green", "pt4", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1385 | local p4m = makemesh("FileMesh", Vector3.new(1, 1, 1), "rbxassetid://250640098", pt4) | |
1386 | p4m.TextureId = "rbxassetid://250639536" | |
1387 | local p4w = makemotor(pt4, pt4, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 4.25, 0.25), nil) | |
1388 | local pt5 = makepart("Bright blue", "pt5", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1389 | local p5m = makemesh("Head", Vector3.new(5, 90, 4), nil, pt5) | |
1390 | local p5w = makemotor(pt5, pt5, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -12, 0), nil) | |
1391 | local pt6 = makepart("Bright blue", "pt6", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1392 | local p6m = makemesh("FileMesh", Vector3.new(0.16, 0.4, 0.16), "rbxassetid://703458158", pt6) | |
1393 | local p6w = makemotor(pt6, pt6, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -16, 0), nil) | |
1394 | local pt7 = makepart("Bright yellow", "pt7", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1395 | local p7m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt7) | |
1396 | local p7w = makemotor(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -27, 0), nil) | |
1397 | local hdec1 = Instance.new("Decal") | |
1398 | hdec1.Texture = "rbxasset://textures/face.png" | |
1399 | hdec1.Face = "Front" | |
1400 | hdec1.Parent = pt7 | |
1401 | local pt8 = makepart("Bright yellow", "pt8", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
1402 | local p8m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt8) | |
1403 | local p8w = makemotor(pt8, pt8, hnd, ang(rd(0), rd(-90), rd(0)) * cf(0, -27, 0), nil) | |
1404 | local hdec2 = Instance.new("Decal") | |
1405 | hdec2.Texture = "rbxasset://textures/face.png" | |
1406 | hdec2.Face = "Front" | |
1407 | hdec2.Parent = pt8 | |
1408 | local pt9 = makepart("Bright yellow", "pt9", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1409 | local p9m = makemesh("FileMesh", Vector3.new(12, 11, 11), "rbxassetid://272942659", pt9) | |
1410 | local p9w = makemotor(pt9, pt9, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -30, 0), nil) | |
1411 | p9m.TextureId = "rbxassetid://272942750" | |
1412 | local pt10 = makepart("Bright yellow", "pt10", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1413 | local p10m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt10) | |
1414 | local p10w = makemotor(pt10, pt10, pt7, ang(rd(0), rd(0), rd(90)) * cf(11, 0, 0), nil) | |
1415 | local hdec3 = Instance.new("Decal") | |
1416 | hdec3.Texture = "rbxasset://textures/face.png" | |
1417 | hdec3.Face = "Front" | |
1418 | hdec3.Parent = pt10 | |
1419 | local pt11 = makepart("Bright yellow", "pt11", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
1420 | local p11m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt11) | |
1421 | local p11w = makemotor(pt11, pt11, pt7, ang(rd(0), rd(180), rd(90)) * cf(11, 0, 0), nil) | |
1422 | local hdec4 = Instance.new("Decal") | |
1423 | hdec4.Texture = "rbxasset://textures/face.png" | |
1424 | hdec4.Face = "Front" | |
1425 | hdec4.Parent = pt11 | |
1426 | local pt12 = makepart("Bright yellow", "pt12", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
1427 | local p12m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt12) | |
1428 | local p12w = makemotor(pt12, pt12, pt7, ang(rd(0), rd(0), rd(-90)) * cf(-11, 0, 0), nil) | |
1429 | local hdec5 = Instance.new("Decal") | |
1430 | hdec5.Texture = "rbxasset://textures/face.png" | |
1431 | hdec5.Face = "Front" | |
1432 | hdec5.Parent = pt12 | |
1433 | local pt13 = makepart("Bright yellow", "pt13", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
1434 | local p13m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt13) | |
1435 | local p13w = makemotor(pt13, pt13, pt7, ang(rd(0), rd(180), rd(-90)) * cf(-11, 0, 0), nil) | |
1436 | local hdec6 = Instance.new("Decal") | |
1437 | hdec6.Texture = "rbxasset://textures/face.png" | |
1438 | hdec6.Face = "Front" | |
1439 | hdec6.Parent = pt13 | |
1440 | cliham = tool.Activated:connect(function() | |
1441 | if selected == false or activu == true or ragged == true then | |
1442 | return | |
1443 | end | |
1444 | activu = true | |
1445 | movin = false | |
1446 | for B = 1, 20 do | |
1447 | swait() | |
1448 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.4) | |
1449 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(8), rd(0), rd(0)), 0.4) | |
1450 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(170)), 0.4) | |
1451 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1452 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(10)), 0.4) | |
1453 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1454 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(-10)), 0.4) | |
1455 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1456 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-5), rd(10), rd(10)), 0.4) | |
1457 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
1458 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 0.1 + B * 0.045) | |
1459 | end | |
1460 | for B = 1, 30 do | |
1461 | swait() | |
1462 | lerpz(RJ, "C0", RJC0 * cf(0, 0.8, 0) * ang(rd(-25), rd(0), rd(-50)), 0.1 + B / 80) | |
1463 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-18), rd(0), rd(40)), 0.1 + B / 80) | |
1464 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-30), rd(-5), rd(160)), 0.1 + B / 80) | |
1465 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
1466 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-20), rd(-150)), 0.1 + B / 80) | |
1467 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
1468 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(-10)), 0.1 + B / 80) | |
1469 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
1470 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(-5), rd(60), rd(-110)), 0.1 + B / 80) | |
1471 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
1472 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
1473 | end | |
1474 | for B = 1, 7 do | |
1475 | swait() | |
1476 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(40)), 0.015 + B / 15) | |
1477 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.015 + B / 15) | |
1478 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-50), rd(100)), 0.015 + B / 15) | |
1479 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
1480 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.015 + B / 15) | |
1481 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
1482 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(10)), 0.015 + B / 15) | |
1483 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
1484 | lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(-20)), 0.015 + B / 15) | |
1485 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
1486 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
1487 | end | |
1488 | for B = 1, 4 do | |
1489 | swait() | |
1490 | lerpz(RJ, "C0", RJC0 * cf(0, -0.8, 0) * ang(rd(70), rd(0), rd(40)), 0.38 + B * 0.1) | |
1491 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.38 + B * 0.1) | |
1492 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-40), rd(100)), 0.38 + B * 0.1) | |
1493 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
1494 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.38 + B * 0.1) | |
1495 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
1496 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(60)), 0.38 + B * 0.1) | |
1497 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
1498 | lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(70)), 0.38 + B * 0.1) | |
1499 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
1500 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
1501 | end | |
1502 | swait(15) | |
1503 | movin = true | |
1504 | activu = false | |
1505 | end) | |
1506 | end | |
1507 | elseif batting == true then | |
1508 | batting = false | |
1509 | cliham:Disconnect() | |
1510 | local badevz = chr:FindFirstChild("bmodel") | |
1511 | badevz.PrimaryPart = badevz.hnd | |
1512 | for _, A in pairs(badevz:GetChildren()) do | |
1513 | if A.ClassName == "Part" then | |
1514 | A.CanCollide = true | |
1515 | A.Anchored = false | |
1516 | end | |
1517 | end | |
1518 | movin = false | |
1519 | badevz.Parent = workspace | |
1520 | badevz:SetPrimaryPartCFrame(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, -11, 0)) | |
1521 | game.Debris:AddItem(badevz, 8) | |
1522 | end | |
1523 | end | |
1524 | game:GetService("ContentProvider"):Preload("rbxassetid://725969678") | |
1525 | function lauf() | |
1526 | if selected == false or activu == true then | |
1527 | return | |
1528 | end | |
1529 | lauf1:Play() | |
1530 | end | |
1531 | noobmodel = Instance.new("Model",chr) | |
1532 | function makenoob(cfrem, scalo, rags) | |
1533 | nscale.Value = scalo | |
1534 | local md = Instance.new("Model") | |
1535 | md.Name = "Noob" | |
1536 | md.Parent = workspace | |
1537 | local hu = Instance.new("Humanoid") | |
1538 | hu.RigType = "R6" | |
1539 | hu.MaxHealth = 100 * scalo | |
1540 | hu.Health = 100 * scalo | |
1541 | hu.Parent = md | |
1542 | local anm = Instance.new("Animator") | |
1543 | anm.Parent = hu | |
1544 | hu.PlatformStand = true | |
1545 | local light = function(part) | |
1546 | part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5) | |
1547 | end | |
1548 | local hd = Instance.new("Part") | |
1549 | hd.Name = "Head" | |
1550 | hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) | |
1551 | hd.TopSurface = "Smooth" | |
1552 | hd.BottomSurface = "Inlet" | |
1553 | hd.Locked = true | |
1554 | hd.BrickColor = BrickColor.new("Bright yellow") | |
1555 | hd.CanCollide = true | |
1556 | hd.Anchored = false | |
1557 | light(hd) | |
1558 | hd.Parent = md | |
1559 | local hm = Instance.new("SpecialMesh") | |
1560 | hm.MeshType = "Head" | |
1561 | hm.Scale = Vector3.new(1.25, 1.25, 1.25) | |
1562 | hm.Parent = hd | |
1563 | local hf = Instance.new("Decal") | |
1564 | hf.Texture = "rbxasset://textures/face.png" | |
1565 | local gen = math.random(1, 40) | |
1566 | if gen == 3 then | |
1567 | hf.Texture = "rbxassetid://260884109" | |
1568 | end | |
1569 | if gen == 8 then | |
1570 | hf.Texture = "rbxassetid://260569492" | |
1571 | end | |
1572 | if gen == 12 then | |
1573 | hf.Texture = "rbxassetid://259580505" | |
1574 | end | |
1575 | if gen == 16 then | |
1576 | hf.Texture = "rbxassetid://259579232" | |
1577 | end | |
1578 | if gen == 24 then | |
1579 | hf.Texture = "rbxassetid://259571525" | |
1580 | end | |
1581 | if gen == 28 then | |
1582 | hf.Texture = "rbxassetid://258283210" | |
1583 | end | |
1584 | if gen == 32 then | |
1585 | hf.Texture = "rbxassetid://258940032" | |
1586 | end | |
1587 | if gen == 38 then | |
1588 | hf.Texture = "rbxassetid://673220970" | |
1589 | hf.Color3 = Color3.new(0, 0, 0) | |
1590 | end | |
1591 | hf.Face = "Front" | |
1592 | hf.Parent = hd | |
1593 | local hrpa = Instance.new("Part") | |
1594 | hrpa.Name = "HumanoidRootPart" | |
1595 | hrpa.TopSurface, hrpa.BottomSurface = 0, 0 | |
1596 | hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1597 | hrpa.Transparency = 1 | |
1598 | hrpa.CanCollide = false | |
1599 | hrpa.Locked = true | |
1600 | light(hrpa) | |
1601 | hrpa.Parent = md | |
1602 | local tagbomb = Instance.new("BoolValue") | |
1603 | tagbomb.Name = "tagbomb" | |
1604 | tagbomb.Value = false | |
1605 | tagbomb.Parent = hrpa | |
1606 | local learm = Instance.new("Part") | |
1607 | learm.Name = "Left Arm" | |
1608 | learm.BrickColor = BrickColor.new("Bright yellow") | |
1609 | learm.CanCollide = false | |
1610 | learm.Locked = true | |
1611 | learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1612 | light(learm) | |
1613 | learm.Parent = md | |
1614 | local riarm = Instance.new("Part") | |
1615 | riarm.Name = "Right Arm" | |
1616 | riarm.BrickColor = BrickColor.new("Bright yellow") | |
1617 | riarm.CanCollide = false | |
1618 | riarm.Locked = true | |
1619 | light(riarm) | |
1620 | riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1621 | riarm.Parent = md | |
1622 | local leleg = Instance.new("Part") | |
1623 | leleg.Name = "Left Leg" | |
1624 | leleg.BrickColor = BrickColor.new("Br. yellowish green") | |
1625 | leleg.CanCollide = false | |
1626 | leleg.Locked = true | |
1627 | light(leleg) | |
1628 | leleg.BottomSurface = 0 | |
1629 | leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1630 | leleg.Parent = md | |
1631 | local rileg = Instance.new("Part") | |
1632 | rileg.Name = "Right Leg" | |
1633 | rileg.BrickColor = BrickColor.new("Br. yellowish green") | |
1634 | rileg.CanCollide = false | |
1635 | rileg.Locked = true | |
1636 | light(rileg) | |
1637 | rileg.BottomSurface = 0 | |
1638 | rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1639 | rileg.Parent = md | |
1640 | local tor = Instance.new("Part") | |
1641 | tor.Name = "Torso" | |
1642 | tor.BrickColor = BrickColor.new("Bright blue") | |
1643 | tor.Locked = true | |
1644 | light(tor) | |
1645 | tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1646 | tor.LeftSurface, tor.RightSurface = "Weld", "Weld" | |
1647 | tor.Parent = md | |
1648 | md.PrimaryPart = hrpa | |
1649 | md:SetPrimaryPartCFrame(cfrem) | |
1650 | md:makeJoints() | |
1651 | makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint") | |
1652 | makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck") | |
1653 | if rags == true then | |
1654 | makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
1655 | makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
1656 | makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
1657 | makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
1658 | maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1659 | maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1660 | maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1661 | maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1662 | elseif rags == false then | |
1663 | makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
1664 | makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
1665 | makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
1666 | makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
1667 | hu.PlatformStand = false | |
1668 | end | |
1669 | nscale.Value = 1 | |
1670 | hu.Touched:connect(function(tpart, uwot) | |
1671 | if tagbomb.Value == true and tpart.Parent ~= md and tpart.Parent.Parent ~= md and tpart.Parent.Parent.Parent ~= md then | |
1672 | tagbomb.Value = false | |
1673 | hu.Health = 0 | |
1674 | local derp = Instance.new("Explosion") | |
1675 | derp.BlastPressure = 200 | |
1676 | derp.BlastRadius = 8 | |
1677 | derp.DestroyJointRadiusPercent = 0 | |
1678 | derp.ExplosionType = 2 | |
1679 | derp.Visible = true | |
1680 | derp.Position = uwot.Position - Vector3.new(0, 0.5, 0) | |
1681 | derp.Parent = workspace | |
1682 | game.Debris:AddItem(md, 8) | |
1683 | end | |
1684 | end) | |
1685 | return md | |
1686 | end | |
1687 | local Moe = Instance.new("Model",game.Workspace)Moe.Name = "Baseballs" | |
1688 | function Baseball() | |
1689 | if activu == true then return end | |
1690 | activu = true | |
1691 | local Middle = Instance.new("Part",Moe)Middle.BrickColor = BrickColor.new("Daisy orange")Middle.Size = Vector3.new(0.75,0.75,0.75) | |
1692 | Middle.TopSurface = "Smooth" Middle.BottomSurface = "Smooth" local M1 = Instance.new("SpecialMesh",Middle)M1.MeshType = "Sphere" Middle.CanCollide = false | |
1693 | Middle.Material = "SmoothPlastic" local W1 = Instance.new("Weld", Middle)W1.Part0 = Middle W1.Part1 = rarm W1.C0 = CFrame.new(0,1.2,0) | |
1694 | for _ = 1, 3 do | |
1695 | swait() | |
1696 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) | |
1697 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1698 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) | |
1699 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1700 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) | |
1701 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1702 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
1703 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1704 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
1705 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1706 | end | |
1707 | local Fre = fire:clone()Fre.Parent = Middle Fre.Enabled = true Fre.Lifetime = NumberRange.new(0.75) | |
1708 | Fre.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0)}) | |
1709 | game.Debris:AddItem(W1,0) | |
1710 | wait() | |
1711 | Middle.CFrame = CFrame.new(tors.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p) | |
1712 | local BV = Instance.new("BodyVelocity",Middle)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.Velocity = Middle.CFrame.lookVector * 150 | |
1713 | for X = 1, 3 do | |
1714 | swait() | |
1715 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7) | |
1716 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1717 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) | |
1718 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1719 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
1720 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1721 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) | |
1722 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1723 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
1724 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
1725 | end | |
1726 | activu = false | |
1727 | end | |
1728 | function makecircle(cfrem, scalo) | |
1729 | local mcir1 = Instance.new("Part") | |
1730 | mcir1.Anchored = true | |
1731 | mcir1.CanCollide = false | |
1732 | mcir1.Size = Vector3.new(0.2, 0.2, 0.2) | |
1733 | mcir1.Transparency = 1 | |
1734 | mcir1.CFrame = cfrem | |
1735 | mcir1.Parent = modz | |
1736 | game.Debris:AddItem(mcir1, 8) | |
1737 | local d1 = Instance.new("Decal") | |
1738 | d1.Texture = "rbxassetid://602615043" | |
1739 | d1.Face = "Front" | |
1740 | d1.Parent = mcir1 | |
1741 | local d2 = Instance.new("Decal") | |
1742 | d2.Texture = "rbxassetid://602617463" | |
1743 | d2.Face = "Back" | |
1744 | d2.Parent = mcir1 | |
1745 | local bme = Instance.new("BlockMesh") | |
1746 | bme.Parent = mcir1 | |
1747 | for _ = 1, 2 do | |
1748 | swait() | |
1749 | bme.Scale = bme.Scale:lerp(Vector3.new(60 * scalo, 60 * scalo, 0), 0.2) | |
1750 | end | |
1751 | for _ = 1, 15 do | |
1752 | swait() | |
1753 | bme.Scale = bme.Scale:lerp(Vector3.new(-0.2 * scalo, -0.2 * scalo, 0), 0.2) | |
1754 | end | |
1755 | for _ = 1, 3 do | |
1756 | swait() | |
1757 | bme.Scale = bme.Scale:lerp(Vector3.new(80 * scalo, 80 * scalo, 0), 0.2) | |
1758 | end | |
1759 | coroutine.resume(coroutine.create(function() | |
1760 | swait(15) | |
1761 | for _ = 1, 12 do | |
1762 | swait() | |
1763 | d1.Transparency = d1.Transparency + 0.08 | |
1764 | d2.Transparency = d2.Transparency + 0.08 | |
1765 | end | |
1766 | mcir1:Destroy() | |
1767 | end)) | |
1768 | return mcir1 | |
1769 | end | |
1770 | function spawnnoob(circlecf, noobcf, scalez, ragd) | |
1771 | local aearae = makecircle(circlecf, scalez) | |
1772 | local nananb | |
1773 | if ragd then | |
1774 | nananb = makenoob(aearae.CFrame * noobcf, scalez, true) | |
1775 | elseif not ragd then | |
1776 | nananb = makenoob(aearae.CFrame * noobcf, scalez, false) | |
1777 | end | |
1778 | return nananb | |
1779 | end | |
1780 | function tagexplode(partoz, magn, bombdelay) | |
1781 | for _, guy in pairs(workspace:GetChildren()) do | |
1782 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy.Name == "Noob" and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude then | |
1783 | coroutine.resume(coroutine.create(function() | |
1784 | swait(bombdelay * 30) | |
1785 | guy:FindFirstChild("HumanoidRootPart").tagbomb.Value = true | |
1786 | end)) | |
1787 | end | |
1788 | end | |
1789 | end | |
1790 | function hito(partoz, magn, dmg, debtim, bodyfdire, bodyrot, charge) | |
1791 | for _, guy in pairs(workspace:GetChildren()) do | |
1792 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then | |
1793 | do | |
1794 | local humz = guy:FindFirstChild("Humanoid") | |
1795 | local horp = guy:FindFirstChild("HumanoidRootPart") | |
1796 | if Berserk == true then | |
1797 | humz.Health = humz.Health - charge*charge*100 | |
1798 | else | |
1799 | humz.Health = humz.Health - charge*charge/10 | |
1800 | end | |
1801 | ragplayer(guy) | |
1802 | humz:SetStateEnabled(16, true) | |
1803 | delay(debtim, function() | |
1804 | humz:SetStateEnabled(16, true) | |
1805 | end) | |
1806 | local b = Instance.new("Part") | |
1807 | nooutline(b) | |
1808 | b.Size = Vector3.new(0.2, 0.2, 0.2) | |
1809 | b.Transparency = 0.25 | |
1810 | b.Anchored = true | |
1811 | b.CanCollide = false | |
1812 | b.BrickColor = BrickColor.new("Institutional white") | |
1813 | b.Locked = true | |
1814 | b.CFrame = horp.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1)) | |
1815 | b.Parent = modz | |
1816 | local c = Instance.new("SpecialMesh") | |
1817 | c.MeshType = "Sphere" | |
1818 | c.Scale = Vector3.new(3.5, 3.5, 3.5) | |
1819 | c.Parent = b | |
1820 | game.Debris:AddItem(b, 1) | |
1821 | if Berserk == false then | |
1822 | humz:SetStateEnabled(16, true) | |
1823 | delay(debtim, function() | |
1824 | humz:SetStateEnabled(16, true) | |
1825 | end) | |
1826 | local db = Instance.new("StringValue") | |
1827 | db.Name = "alabo" | |
1828 | db.Parent = horp | |
1829 | delay(debtim, function() | |
1830 | db:Destroy() | |
1831 | end) | |
1832 | end | |
1833 | if bodyfdire then | |
1834 | local boopyve = Instance.new("BodyVelocity") | |
1835 | boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999) | |
1836 | boopyve.P = 9999999999 | |
1837 | boopyve.Velocity = bodyfdire | |
1838 | boopyve.Parent = horp | |
1839 | game.Debris:AddItem(boopyve, debtim) | |
1840 | end | |
1841 | if bodyrot then | |
1842 | local boopyro = Instance.new("BodyAngularVelocity") | |
1843 | boopyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
1844 | boopyro.P = math.huge | |
1845 | boopyro.AngularVelocity = bodyrot | |
1846 | boopyro.Parent = horp | |
1847 | game.Debris:AddItem(boopyro, debtim) | |
1848 | end | |
1849 | for i = 1,2 do | |
1850 | local bet = Instance.new("Sound") | |
1851 | bet.Pitch = rd2(9, 11) / 10 | |
1852 | bet.Volume = 2 | |
1853 | bet.SoundId = "rbxassetid://694048922" | |
1854 | bet.Parent = b | |
1855 | bet:Play() | |
1856 | end | |
1857 | if charge >= 100 then | |
1858 | local P = guy:GetChildren() | |
1859 | for i = 1,#P do | |
1860 | if P[i].Name ~= "HumanoidRootPart" then | |
1861 | P[i]:remove() | |
1862 | end | |
1863 | end | |
1864 | for i = 1,2 do | |
1865 | local bet = Instance.new("Sound") | |
1866 | bet.Volume = 10 | |
1867 | bet.SoundId = "rbxassetid://291487516" | |
1868 | bet.Parent = b | |
1869 | bet:Play() | |
1870 | end | |
1871 | local Rainbew = fire:clone()Rainbew.Parent = horp Rainbew.Enabled = true Rainbew.Lifetime = NumberRange.new(4) Rainbew.Speed = NumberRange.new(0) | |
1872 | end | |
1873 | coroutine.resume(coroutine.create(function() | |
1874 | for _ = 1, 5 do | |
1875 | swait() | |
1876 | b.Transparency = b.Transparency + 0.175 | |
1877 | c.Scale = c.Scale + Vector3.new(2 * dmg, 2 * dmg, 2 * dmg) | |
1878 | end | |
1879 | end)) | |
1880 | end | |
1881 | end | |
1882 | end | |
1883 | end | |
1884 | function hito2(partoz, magn, dmg, debtim, bodyfdire, bodyrot) | |
1885 | for _, guy in pairs(workspace:GetChildren()) do | |
1886 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then | |
1887 | do | |
1888 | local humz = guy:FindFirstChild("Humanoid") | |
1889 | local horp = guy:FindFirstChild("HumanoidRootPart") | |
1890 | ragplayer(guy) | |
1891 | if guy:findFirstChild("Head")~=nil then | |
1892 | guy.Head:BreakJoints() | |
1893 | local boopyve = Instance.new("BodyVelocity") | |
1894 | boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999) | |
1895 | boopyve.P = 9999999999 | |
1896 | boopyve.Velocity = bodyfdire | |
1897 | boopyve.Parent = guy:findFirstChild("Head") | |
1898 | game.Debris:AddItem(boopyve, debtim) | |
1899 | local Blood = Instance.new("ParticleEmitter", guy.Head) | |
1900 | Blood.Enabled = false | |
1901 | Blood.Lifetime = NumberRange.new(0.75) | |
1902 | Blood.RotSpeed = NumberRange.new(10) | |
1903 | Blood.Acceleration = Vector3.new(0,-10,0) | |
1904 | Blood.Rate = 250 | |
1905 | Blood.VelocitySpread = 360 | |
1906 | Blood.Speed = NumberRange.new(2,8) | |
1907 | Blood.Rotation = NumberRange.new(-360,360) | |
1908 | Blood.Name = "Blood" | |
1909 | Blood.LightEmission = -0.5 | |
1910 | Blood.Texture = "http://www.roblox.com/asset/?id=513989292" | |
1911 | Blood.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.8), NumberSequenceKeypoint.new(1, 0)}) | |
1912 | Blood.ZOffset = 2 Blood.Enabled = true | |
1913 | end | |
1914 | humz:SetStateEnabled(16, true) | |
1915 | delay(debtim, function() | |
1916 | humz:SetStateEnabled(16, true) | |
1917 | end) | |
1918 | local db = Instance.new("StringValue") | |
1919 | db.Name = "alabo" | |
1920 | db.Parent = horp | |
1921 | delay(debtim, function() | |
1922 | db:Destroy() | |
1923 | end) | |
1924 | if bodyfdire then | |
1925 | ||
1926 | end | |
1927 | if bodyrot then | |
1928 | local boopyro = Instance.new("BodyAngularVelocity") | |
1929 | boopyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
1930 | boopyro.P = math.huge | |
1931 | boopyro.AngularVelocity = bodyrot | |
1932 | boopyro.Parent = horp | |
1933 | game.Debris:AddItem(boopyro, debtim) | |
1934 | end | |
1935 | for i = 1,2 do | |
1936 | local bet = Instance.new("Sound") | |
1937 | bet.Pitch = rd2(9, 11) / 10 | |
1938 | bet.Volume = rd2(12, 14) / 10 | |
1939 | bet.SoundId = "rbxassetid://553265835" | |
1940 | bet.Parent = horp | |
1941 | bet:Play() | |
1942 | end | |
1943 | end | |
1944 | end | |
1945 | ||
1946 | end | |
1947 | end | |
1948 | function hito3(partoz, magn, dmg, debtim, bodyfdire, bodyrot, charge) | |
1949 | for _, guy in pairs(workspace:GetChildren()) do | |
1950 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then | |
1951 | do | |
1952 | local humz = guy:FindFirstChild("Humanoid") | |
1953 | local horp = guy:FindFirstChild("HumanoidRootPart") | |
1954 | local p23 = Instance.new("Part",Maedl)p23.Size = Vector3.new(1,1,1)p23.Material = "Neon" p23.BrickColor = BrickColor.new("Maroon") p23.CanCollide = false | |
1955 | p23.CFrame = guy.Torso.CFrame*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90)) | |
1956 | local B23 = Instance.new("BlockMesh",p23) | |
1957 | local BP = Instance.new("BodyPosition",p23)BP.P = 10000000 BP.maxForce = Vector3.new(math.huge,math.huge,math.huge)p23:findFirstChild("BodyPosition").Position = tors.Position | |
1958 | game.Debris:AddItem(p23,2) | |
1959 | guy.Torso:BreakJoints() | |
1960 | local b = Instance.new("Part") | |
1961 | nooutline(b) | |
1962 | b.Size = Vector3.new(0.2, 0.2, 0.2) | |
1963 | b.Transparency = 0 | |
1964 | b.Anchored = true | |
1965 | b.CanCollide = false | |
1966 | b.BrickColor = BrickColor.new("Maroon") | |
1967 | b.Locked = true | |
1968 | b.CFrame = horp.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1)) | |
1969 | b.Parent = modz | |
1970 | local c = Instance.new("SpecialMesh") | |
1971 | c.MeshType = "Sphere" | |
1972 | c.Scale = Vector3.new(3.5, 3.5, 3.5) | |
1973 | c.Parent = b | |
1974 | game.Debris:AddItem(b, 1) | |
1975 | humz:SetStateEnabled(16, true) | |
1976 | delay(debtim, function() | |
1977 | humz:SetStateEnabled(16, true) | |
1978 | end) | |
1979 | local db = Instance.new("StringValue") | |
1980 | db.Name = "alabo" | |
1981 | db.Parent = horp | |
1982 | delay(debtim, function() | |
1983 | db:Destroy() | |
1984 | end) | |
1985 | for i = 1,2 do | |
1986 | local bet = Instance.new("Sound") | |
1987 | bet.Pitch = rd2(9, 11) / 10 | |
1988 | bet.Volume = 10 | |
1989 | bet.SoundId = "rbxassetid://553265835" | |
1990 | bet.Parent = guy.Torso | |
1991 | bet:Play() | |
1992 | end | |
1993 | coroutine.resume(coroutine.create(function() | |
1994 | for _ = 1, 5 do | |
1995 | swait() | |
1996 | b.Transparency = b.Transparency + 0.2 | |
1997 | c.Scale = c.Scale + Vector3.new(4 * dmg, 4 * dmg, 4 * dmg) | |
1998 | end | |
1999 | end)) | |
2000 | end | |
2001 | end | |
2002 | end | |
2003 | end | |
2004 | function hito4(partoz, magn, dmg, debtim, bodyfdire, bodyrot, charge) | |
2005 | for _, guy in pairs(workspace:GetChildren()) do | |
2006 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then | |
2007 | do | |
2008 | local humz = guy:FindFirstChild("Humanoid") | |
2009 | local horp = guy:FindFirstChild("HumanoidRootPart") | |
2010 | ragplayer(guy) | |
2011 | humz:SetStateEnabled(16, true) | |
2012 | delay(debtim, function() | |
2013 | humz:SetStateEnabled(16, true) | |
2014 | end) | |
2015 | if Berserk == false then | |
2016 | humz:SetStateEnabled(16, true) | |
2017 | delay(debtim, function() | |
2018 | humz:SetStateEnabled(16, true) | |
2019 | end) | |
2020 | local db = Instance.new("StringValue") | |
2021 | db.Name = "alabo" | |
2022 | db.Parent = horp | |
2023 | delay(debtim, function() | |
2024 | db:Destroy() | |
2025 | end) | |
2026 | end | |
2027 | local boopyve = Instance.new("BodyVelocity") | |
2028 | boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999) | |
2029 | boopyve.P = 9999999999 | |
2030 | boopyve.Velocity = bodyfdire | |
2031 | boopyve.Parent = horp | |
2032 | if bodyrot then | |
2033 | local boopyro = Instance.new("BodyAngularVelocity") | |
2034 | boopyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
2035 | boopyro.P = math.huge | |
2036 | boopyro.AngularVelocity = bodyrot | |
2037 | boopyro.Parent = horp | |
2038 | game.Debris:AddItem(boopyro, debtim) | |
2039 | end | |
2040 | if charge >= 1 then | |
2041 | for i = 1,2 do | |
2042 | local bet = Instance.new("Sound") | |
2043 | bet.Volume = 10 | |
2044 | bet.SoundId = "rbxassetid://517249876" | |
2045 | bet.Parent = tors | |
2046 | bet:Play() | |
2047 | end | |
2048 | for i = 1,100 do | |
2049 | Lightningz2(tors.Position+Vector3.new(math.random(-charge/100,charge/100)),guy.HumanoidRootPart.Position, 0.2, 8, game.Workspace) | |
2050 | humz.Health = 0.001 | |
2051 | wait() end game.Debris:AddItem(boopyve, 0) | |
2052 | end | |
2053 | end | |
2054 | end | |
2055 | end | |
2056 | end | |
2057 | function cleannoobs() | |
2058 | for _, nib in pairs(workspace:GetChildren()) do | |
2059 | coroutine.resume(coroutine.create(function() | |
2060 | if nib.Name == "Noob" then | |
2061 | if nib:FindFirstChild("HumanoidRootPart") then | |
2062 | local g = Instance.new("Part") | |
2063 | g.CanCollide, g.Anchored = false, true | |
2064 | g.Transparency = 1 | |
2065 | g.CFrame = nib:FindFirstChild("HumanoidRootPart").CFrame | |
2066 | g.Parent = workspace | |
2067 | game.Debris:AddItem(g, 3.5) | |
2068 | local sou = Instance.new("Sound") | |
2069 | sou.Pitch = math.random(7, 11) / 10 | |
2070 | sou.Volume = 0.8 | |
2071 | sou.SoundId = "rbxassetid://111124523" | |
2072 | sou.Parent = g | |
2073 | local pe = Instance.new("ParticleEmitter") | |
2074 | pe.Acceleration = Vector3.new(0, 8, 0) | |
2075 | pe.Lifetime = NumberRange.new(1, 1.5) | |
2076 | pe.Rate = 0.005 | |
2077 | pe.RotSpeed = NumberRange.new(-30, 30) | |
2078 | pe.Rotation = NumberRange.new(0, 360) | |
2079 | pe.Size = NumberSequence.new({ | |
2080 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
2081 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
2082 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
2083 | }) | |
2084 | pe.Texture = "rbxassetid://244221440" | |
2085 | pe.Transparency = NumberSequence.new({ | |
2086 | NumberSequenceKeypoint.new(0, 0, 0), | |
2087 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
2088 | NumberSequenceKeypoint.new(1, 1, 1) | |
2089 | }) | |
2090 | pe.ZOffset = 5 | |
2091 | pe.Enabled = true | |
2092 | pe.VelocitySpread = 360 | |
2093 | pe.Parent = g | |
2094 | swait(5) | |
2095 | pe:Emit(6) | |
2096 | sou:Play() | |
2097 | end | |
2098 | nib:Destroy() | |
2099 | end | |
2100 | end)) | |
2101 | end | |
2102 | end | |
2103 | function animo(yep) | |
2104 | if yep == true then | |
2105 | anim.Parent = human | |
2106 | chr.Animate.Disabled = false | |
2107 | elseif yep == false then | |
2108 | chr.Animate.Disabled = true | |
2109 | anim.Parent = nil | |
2110 | end | |
2111 | end | |
2112 | mouse.KeyDown:connect(function(key) | |
2113 | if key == "r" then | |
2114 | test() | |
2115 | end | |
2116 | if key == "m" then | |
2117 | lauf() | |
2118 | end | |
2119 | if key == "c" and plr.UserId == 49689731 then | |
2120 | ham() | |
2121 | end | |
2122 | if key == "x" then | |
2123 | bat() | |
2124 | end | |
2125 | if key == "y" then | |
2126 | epic() | |
2127 | end | |
2128 | if key == "m" then | |
2129 | Bloodthirst() | |
2130 | end | |
2131 | if key == "g" then | |
2132 | Baseball() | |
2133 | end | |
2134 | if key == "l" and plr.UserId == 49689731 and selected == true then | |
2135 | spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, true) | |
2136 | end | |
2137 | if key == ";" and plr.UserId == 49689731 and selected == true then | |
2138 | spawnnoob(hrp.CFrame * cf(5, 60, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 10, true) | |
2139 | end | |
2140 | if key == "k" and plr.UserId == 49689731 and selected == true then | |
2141 | spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, false) | |
2142 | end | |
2143 | if key == "p" then | |
2144 | cleannoobs() | |
2145 | end | |
2146 | if key == "z" then | |
2147 | if selected == false or activu == true then | |
2148 | return | |
2149 | end | |
2150 | if human.WalkSpeed == 24 then | |
2151 | human.WalkSpeed = 150 | |
2152 | human.JumpPower = 150 | |
2153 | else | |
2154 | human.WalkSpeed = 24 | |
2155 | human.JumpPower = 85 | |
2156 | end | |
2157 | end | |
2158 | end) | |
2159 | tool.Equipped:connect(function() | |
2160 | script.Disabled = false | |
2161 | selected = true | |
2162 | end) | |
2163 | tool.Unequipped:connect(function() | |
2164 | selected = false | |
2165 | end) | |
2166 | animo(false) | |
2167 | human.WalkSpeed = 24 | |
2168 | sine = 0 | |
2169 | charge = 1 | |
2170 | cos = math.cos | |
2171 | game:GetService("RunService").RenderStepped:connect(function() | |
2172 | if Berserk == true then | |
2173 | chr.Humanoid.MaxHealth = chr.Humanoid.MaxHealth + 100 | |
2174 | chr.Humanoid.Health = chr.Humanoid.Health + 50 | |
2175 | end | |
2176 | if Music == true then | |
2177 | hito(tors, 5, 10, 0.2, hrp.CFrame.lookVector * 150, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)), 1) | |
2178 | end | |
2179 | for i,v in pairs (Maedl:children()) do | |
2180 | v:findFirstChild("Mesh").Offset = Vector3.new(math.random(-15-v.Mesh.Scale.Y,15+v.Mesh.Scale.Y)/10,math.random(-15-v.Mesh.Scale.Y,15+v.Mesh.Scale.Y)/10,math.random(-15-v.Mesh.Scale.Y,15+v.Mesh.Scale.Y)/10) | |
2181 | v:findFirstChild("Mesh").Scale = v.Mesh.Scale + Vector3.new(0.025,0.025,0.025) | |
2182 | end | |
2183 | for i,v in pairs (Moe:children()) do | |
2184 | hito(v, 5, 10, 0.2, Vector3.new(math.random(-100,100),100,math.random(-100,100)), Vector3.new(0, rd2(-25, 25) * (100 / 25), rd2(-80, 80) * (100 / 40)),100) | |
2185 | end | |
2186 | for i,v in pairs (chr:children()) do | |
2187 | if v.ClassName == "Accessory" then | |
2188 | for i,v2 in pairs (v:children()) do | |
2189 | if v2.ClassName == "Part" then | |
2190 | v2.Anchored = false | |
2191 | end | |
2192 | end | |
2193 | end | |
2194 | end | |
2195 | for i,v in pairs (chr:children()) do | |
2196 | if v.ClassName == "Part" then | |
2197 | v.Anchored = false | |
2198 | end | |
2199 | end | |
2200 | if ragged == false and activu == false then | |
2201 | local checkfloor = Ray.new(hrp.Position, Vector3.new(0, -5, 0)) | |
2202 | local checkpart = workspace:FindPartOnRayWithIgnoreList(checkfloor, {chr}, false, false) | |
2203 | local checkstate = human:GetState() | |
2204 | if checkstate.Value == 13 then | |
2205 | animpose = "Sitting" | |
2206 | elseif hrp.Velocity.y > 1 and checkpart == nil then | |
2207 | animpose = "Jumping" | |
2208 | elseif hrp.Velocity.y < -1 and checkpart == nil then | |
2209 | animpose = "Falling" | |
2210 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then | |
2211 | animpose = "Idle" | |
2212 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 40 then | |
2213 | animpose = "Walking" | |
2214 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude > 40 then | |
2215 | animpose = "TooFast" | |
2216 | end | |
2217 | if animpose == "Idle" then | |
2218 | sine = sine + charge | |
2219 | lerpz(RJ, "C0", RJC0 * cf(0.05 * cos(sine / 40), 0, -0.05 - 0.05 * cos(sine / 20)) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2220 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(4 + 2 * cos(sine / 20)), rd(0), rd(0)), 0.3) | |
2221 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3) | |
2222 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2223 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3) | |
2224 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2225 | lerpz(RH, "C0", RHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), 0.05 * cos(sine / 40)) * ang(rd(-5), rd(-5), rd(1)), 0.3) | |
2226 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2227 | lerpz(LH, "C0", LHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), -0.05 * cos(sine / 40)) * ang(rd(-5), rd(5), rd(1)), 0.3) | |
2228 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2229 | end | |
2230 | if animpose == "Walking" then | |
2231 | sine = sine + charge | |
2232 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.025 * cos(sine / 4)) * ang(rd(-5), math.sin(hrp.RotVelocity.Y / 30), math.sin(hrp.RotVelocity.Y / 5)), 0.3) | |
2233 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(0), rd(0)), 0.3) | |
2234 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6) | |
2235 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2236 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6) | |
2237 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2238 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6) | |
2239 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2240 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6) | |
2241 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2242 | end | |
2243 | if animpose == "Jumping" then | |
2244 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.3) | |
2245 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.3) | |
2246 | lerpz(RS, "C0", RSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(-5), rd(-20)), 0.3) | |
2247 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2248 | lerpz(LS, "C0", LSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(5), rd(20)), 0.3) | |
2249 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2250 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-20), rd(-20), rd(-20)), 0.3) | |
2251 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2252 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(15)), 0.3) | |
2253 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2254 | end | |
2255 | if animpose == "Falling" then | |
2256 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3) | |
2257 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3) | |
2258 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(-5), rd(-20)), 0.3) | |
2259 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2260 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(5), rd(20)), 0.3) | |
2261 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2262 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-15), rd(-20)), 0.3) | |
2263 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2264 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(15), rd(15)), 0.3) | |
2265 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2266 | end | |
2267 | if animpose == "TooFast" then | |
2268 | sine = sine + charge | |
2269 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.35 * cos(sine / 2)) * ang(rd(-20), math.sin(hrp.RotVelocity.Y / 20), math.sin(hrp.RotVelocity.Y / 2)), 0.3) | |
2270 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15 - 5 * cos(sine / 2)), rd(0), rd(0)), 0.3) | |
2271 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6) | |
2272 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2273 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6) | |
2274 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2275 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6) | |
2276 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2277 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6) | |
2278 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2279 | end | |
2280 | if animpose == "Sitting" then | |
2281 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2282 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2283 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3) | |
2284 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2285 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3) | |
2286 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2287 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3) | |
2288 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2289 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3) | |
2290 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
2291 | end | |
2292 | end | |
2293 | end) |