SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | - | --[[ Thank you ]]-- |
87 | + | --When'sWaifu |
88 | - | ------------------------------------------------------- |
88 | + | wait(0.2) |
89 | - | --[[ |
89 | + | print("Hey!!!") |
90 | print("You Pervert!!!") | |
91 | - | This script was created by WafflesAreVeryGood or Nobody#3907 |
91 | + | local hoh = owner |
92 | local char = hoh.Character | |
93 | - | --]] |
93 | + | local Head = char.Head |
94 | - | ------------------------------------------------------- |
94 | + | local LeftArm = char["Left Arm"] |
95 | - | --[[ Reference ]]-- |
95 | + | local RightArm = char["Right Arm"] |
96 | - | --[[ |
96 | + | local LeftLeg = char["Left Leg"] |
97 | - | Burn Function |
97 | + | local RightLeg = char["Right Leg"] |
98 | - | hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}}) |
98 | + | local cam = game.Workspace.CurrentCamera |
99 | local RootPart = char.HumanoidRootPart | |
100 | - | Freeze Function |
100 | + | local RootJoint = RootPart.RootJoint |
101 | - | hurt(char.Head, 0, "Freeze", {char, 1}) |
101 | + | local Anim = "Idle" |
102 | local idle = 0 | |
103 | - | Stun Function |
103 | + | local Effects = {} |
104 | - | hurt(char.Head, 0, "Stun", {char, 0.2}) |
104 | + | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude |
105 | - | --]] |
105 | + | vt = Vector3.new |
106 | - | ------------------------------------------------------- |
106 | + | local cf = CFrame.new |
107 | - | math.randomseed(tick()) |
107 | + | local mr = math.rad |
108 | - | print("You are using a script created by WafflesAreVeryGood!") |
108 | + | local angles = CFrame.Angles |
109 | - | warn("--------Global Message--------") |
109 | + | local ud = UDim2.new |
110 | - | warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description) |
110 | + | local c3 = Color3.new |
111 | - | warn("------------------------------") |
111 | + | local velocity = RootPart.Velocity.y |
112 | - | --[[Changeable Variables]]-- |
112 | + | local sine = 0 |
113 | - | local settings = {} |
113 | + | local change = 1 |
114 | - | --ShowDamage settings |
114 | + | local grabbed = false |
115 | - | settings.Damage = { |
115 | + | local cn = CFrame.new |
116 | - | Color = nil, |
116 | + | local mr = math.rad |
117 | - | StrokeColor = nil, |
117 | + | local angles = CFrame.Angles |
118 | - | Font = nil, |
118 | + | local ud = UDim2.new |
119 | local c3 = Color3.new | |
120 | - | settings.ShowDamageEnabled = false |
120 | + | local d = Instance.new('Model', char) |
121 | - | settings.CustomAnim = true |
121 | + | d.Name = "KKK" |
122 | - | local soundlist = { |
122 | + | attack = false |
123 | - | HardHit1 = "rbxassetid://565207203", |
123 | + | nak = false |
124 | - | HardHit2 = "rbxassetid://541909913", |
124 | + | disable = false |
125 | - | HardHit3 = "rbxassetid://541909983", |
125 | + | attacktype = 1 |
126 | - | WeakHit1 = "rbxassetid://558642292", |
126 | + | equipped = false |
127 | - | WeakHit2 = "rbxassetid://541907812", |
127 | + | char.Humanoid.Animator.Parent = nil |
128 | - | Slice1 = "rbxassetid://260429964", |
128 | + | char.Animate.Parent = nil |
129 | - | Slice2 = "rbxassetid://260430015", |
129 | + | local newMotor = function(part0, part1, c0, c1) |
130 | - | Explosion1 = "rbxassetid://138186576", |
130 | + | local w = Instance.new("Motor", part0) |
131 | - | Explosion2 = "rbxassetid://157878578", |
131 | + | w.Part0 = part0 |
132 | - | Woosh1 = "rbxassetid://541909867", |
132 | + | w.Part1 = part1 |
133 | - | Woosh2 = "rbxassetid://541909763", |
133 | + | w.C0 = c0 |
134 | - | Freeze = "rbxassetid://268249319", |
134 | + | w.C1 = c1 |
135 | - | Thaw = "rbxassetid://1578580965", |
135 | + | return w |
136 | - | Burn = "rbxassetid://298181829", |
136 | + | |
137 | clerp = function(a, b, t) | |
138 | ||
139 | - | local attack_data = { |
139 | + | return a:lerp(b, t) |
140 | - | { |
140 | + | |
141 | - | Name = "Attack", |
141 | + | |
142 | - | Description = "Description", |
142 | + | for i,v in pairs(char:children()) do |
143 | - | Key = "Key", |
143 | + | if v:IsA("Hat") then |
144 | - | }, |
144 | + | v:Destroy() |
145 | end | |
146 | for i,v in pairs(char:children()) do | |
147 | if v:IsA("Accessory") then | |
148 | - | --[[Important Variables]]-- |
148 | + | v:Destroy() |
149 | - | local plr = owner |
149 | + | end |
150 | - | local char = plr.Character |
150 | + | for i,v in pairs(char:children()) do |
151 | - | local input = game:GetService('UserInputService') |
151 | + | if v:IsA("ShirtGraphic") then |
152 | - | ---- |
152 | + | v:Destroy() |
153 | - | local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"} |
153 | + | end |
154 | - | local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart |
154 | + | |
155 | - | local rs = torso["Right Shoulder"] |
155 | + | |
156 | - | local ls = torso["Left Shoulder"] |
156 | + | |
157 | - | local rh = torso["Right Hip"] |
157 | + | |
158 | - | local lh = torso["Left Hip"] |
158 | + | ypcall(function() |
159 | - | local neck = torso.Neck |
159 | + | char.Torso.roblox:Remove() |
160 | - | local rj = rootpart["RootJoint"] |
160 | + | char.Shirt:Destroy() |
161 | - | local humanoid = char:FindFirstChildOfClass("Humanoid") |
161 | + | char.Pants:Destroy() |
162 | - | ---- |
162 | + | char.Head.face:Destroy() |
163 | - | local huge = Vector3.new(math.huge, math.huge, math.huge) |
163 | + | shirt = Instance.new("Shirt", char) |
164 | - | local attacking = false |
164 | + | shirt.Name = "Shirt" |
165 | - | local cananim = true |
165 | + | Pants = Instance.new("Pants", char) |
166 | - | local animpose = "Idle" |
166 | + | Pants.Name = "Pants" |
167 | - | local lastpose = animpose |
167 | + | face = Instance.new("Decal", char.Head) |
168 | - | local movespeed = 0 |
168 | + | face.Name = "face" |
169 | - | ---- |
169 | + | char.Shirt.ShirtTemplate = "rbxassetid://251988595" |
170 | - | --[[ Anti-Decompile ]]-- |
170 | + | char.Pants.PantsTemplate = "rbxassetid://324421595" |
171 | - | script.Parent = workspace.CurrentCamera |
171 | + | char.Head.face.Texture = "rbxassetid://648887959" |
172 | - | game:GetService('Players').LocalPlayer.CharacterAdded:connect(function() |
172 | + | |
173 | - | script:Destroy() |
173 | + | function CreateSound(id, par, vol, pit) |
174 | coroutine.resume(coroutine.create(function() | |
175 | - | --[[ Moves Gui ]]-- |
175 | + | local sou = Instance.new("Sound", par or workspace) |
176 | sou.Volume = vol | |
177 | - | local mgui = Instance.new("ScreenGui") |
177 | + | sou.Pitch = pit or 1 |
178 | - | mgui.Name = "MovesGui" |
178 | + | sou.SoundId = id |
179 | - | local bg = Instance.new("Frame") |
179 | + | wait() |
180 | - | bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255) |
180 | + | sou:play() |
181 | - | bg.Position = UDim2.new(0,504,0,164) |
181 | + | game:GetService("Debris"):AddItem(sou, 6) |
182 | - | bg.Name = "Background" |
182 | + | end)) |
183 | - | bg.Size = UDim2.new(-0.035,379,0,225) |
183 | + | |
184 | - | bg.Visible = false |
184 | + | New = function(Object, Parent, Name, Data) |
185 | - | bg.Parent = mgui |
185 | + | local Object = Instance.new(Object) |
186 | - | local container = Instance.new("ScrollingFrame") |
186 | + | for Index, Value in pairs(Data or {}) do |
187 | - | container.Name = "Container" |
187 | + | Object[Index] = Value |
188 | - | container.BackgroundColor3 = Color3.new(70/255,70/255,70/255) |
188 | + | |
189 | - | container.BorderSizePixel = 0 |
189 | + | Object.Parent = Parent |
190 | - | container.Visible = true |
190 | + | Object.Name = Name |
191 | - | container.Position = UDim2.new(0,16,0,46) |
191 | + | return Object |
192 | - | container.Size = UDim2.new(0,132,0,162) |
192 | + | |
193 | - | container.CanvasSize = UDim2.new(0,0,0,10) |
193 | + | |
194 | - | container.ScrollBarThickness = 4 |
194 | + | |
195 | - | container.Parent = bg |
195 | + | local co1 = 5 |
196 | - | local copy = Instance.new("TextButton") |
196 | + | local co2 = 8 |
197 | - | copy.Name = "Move" |
197 | + | local co3 = 10 |
198 | - | copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255) |
198 | + | local co4 = 25 |
199 | - | copy.BorderSizePixel = 0 |
199 | + | local cooldown1 = 0 |
200 | - | copy.Position = UDim2.new(0,4,0,4) |
200 | + | local cooldown2 = 0 |
201 | - | copy.Size = UDim2.new(0,118,0,29) |
201 | + | local cooldown3 = 0 |
202 | - | copy.Font = "SourceSansLight" |
202 | + | local cooldown4 = 0 |
203 | - | copy.Text = "Move Name" |
203 | + | local skillcolorscheme = BrickColor.new("Navy blue").Color |
204 | - | copy.TextColor3 = Color3.new(197/255,0,0) |
204 | + | local scrn = Instance.new("ScreenGui", hoh.PlayerGui) |
205 | - | copy.TextSize = 20 |
205 | + | makeframe = function(par, trans, pos, size, color) |
206 | - | copy.Visible = false |
206 | + | |
207 | - | copy.Parent = container |
207 | + | local frame = Instance.new("Frame", par) |
208 | - | local atkinfo = container:Clone() |
208 | + | frame.BackgroundTransparency = trans |
209 | - | for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end |
209 | + | frame.BorderSizePixel = 0 |
210 | - | atkinfo.Name = "AtkInfo" |
210 | + | frame.Position = pos |
211 | - | atkinfo.Visible = true |
211 | + | frame.Size = size |
212 | - | atkinfo.Position = UDim2.new(0,167,0,50) |
212 | + | frame.BackgroundColor3 = color |
213 | - | atkinfo.Size = UDim2.new(0,159,0,165) |
213 | + | return frame |
214 | - | atkinfo.Parent = bg |
214 | + | |
215 | - | local movename = Instance.new("TextLabel") |
215 | + | |
216 | - | movename.Name = "MoveName" |
216 | + | makelabel = function(par, text) |
217 | - | movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255) |
217 | + | |
218 | - | movename.BorderSizePixel = 0 |
218 | + | local label = Instance.new("TextLabel", par) |
219 | - | movename.Position = UDim2.new(0,4,0,4) |
219 | + | label.BackgroundTransparency = 1 |
220 | - | movename.Size = UDim2.new(0,150,0,30) |
220 | + | label.Size = UDim2.new(1, 0, 1, 0) |
221 | - | movename.Font = "SourceSansLight" |
221 | + | label.Position = UDim2.new(0, 0, 0, 0) |
222 | - | movename.TextColor3 = Color3.new(197/255,0,0) |
222 | + | label.TextColor3 = Color3.new(255, 255, 0) |
223 | - | movename.TextSize = 20 |
223 | + | label.TextStrokeTransparency = 0 |
224 | - | movename.Text = "same" |
224 | + | label.FontSize = Enum.FontSize.Size32 |
225 | - | movename.Parent = atkinfo |
225 | + | label.Font = Enum.Font.SourceSansLight |
226 | - | local movedesc = movename:Clone() |
226 | + | label.BorderSizePixel = 0 |
227 | - | movedesc.Position = UDim2.new(0,4,0,47) |
227 | + | label.TextScaled = true |
228 | - | movedesc.Size = UDim2.new(0,150,0,133) |
228 | + | label.Text = text |
229 | - | movedesc.Text = "Move Description" |
229 | + | |
230 | - | movedesc.TextSize = 18 |
230 | + | |
231 | - | movedesc.Name = "MoveDesc" |
231 | + | framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) |
232 | - | movedesc.TextXAlignment = "Left" |
232 | + | framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) |
233 | - | movedesc.TextYAlignment = "Top" |
233 | + | framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) |
234 | - | movedesc.TextWrapped = true |
234 | + | framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme) |
235 | - | movedesc.Parent = atkinfo |
235 | + | bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) |
236 | - | local title = movedesc:Clone() |
236 | + | bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) |
237 | - | title.Name = "Title" |
237 | + | bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) |
238 | - | title.Font = "SourceSansLight" |
238 | + | bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme) |
239 | - | title.Text = "Moves List" |
239 | + | text1 = Instance.new("TextLabel", framesk1) |
240 | - | title.TextSize = 28 |
240 | + | text1.BackgroundTransparency = 1 |
241 | - | title.BackgroundColor3 = Color3.new(36/255,36/255,36/255) |
241 | + | text1.Size = UDim2.new(1, 0, 1, 0) |
242 | - | title.Position = UDim2.new(0,0,0,0) |
242 | + | text1.Position = UDim2.new(0, 0, 0, 0) |
243 | - | title.Size = UDim2.new(1,0,0,30) |
243 | + | text1.TextColor3 = Color3.new(255, 255, 0) |
244 | - | title.TextXAlignment = "Center" |
244 | + | text1.TextStrokeTransparency = 0 |
245 | - | title.TextYAlignment = "Center" |
245 | + | text1.FontSize = Enum.FontSize.Size18 |
246 | - | title.Parent = bg |
246 | + | text1.Font = Enum.Font.SourceSansLight |
247 | - | local toggle = copy:Clone() |
247 | + | text1.BorderSizePixel = 0 |
248 | - | toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255) |
248 | + | text1.TextScaled = true |
249 | - | toggle.Position = UDim2.new(0,0,0,288) |
249 | + | text1.Text = "[Z]\n honk" |
250 | - | toggle.Size = UDim2.new(0,70,0,20) |
250 | + | text2 = Instance.new("TextLabel", framesk2) |
251 | - | toggle.Visible = true |
251 | + | text2.BackgroundTransparency = 1 |
252 | - | toggle.Font = "SourceSans" |
252 | + | text2.Size = UDim2.new(1, 0, 1, 0) |
253 | - | toggle.Text = "Toggle Moves" |
253 | + | text2.Position = UDim2.new(0, 0, 0, 0) |
254 | - | toggle.Name = "Toggle" |
254 | + | text2.TextColor3 = Color3.new(255, 255, 0) |
255 | - | toggle.TextSize = 14 |
255 | + | text2.TextStrokeTransparency = 0 |
256 | - | toggle.Parent = mgui |
256 | + | text2.FontSize = Enum.FontSize.Size18 |
257 | - | mgui.Parent = plr:FindFirstChildOfClass("PlayerGui") |
257 | + | text2.Font = Enum.Font.SourceSansLight |
258 | - | mgui.Enabled = false |
258 | + | text2.BorderSizePixel = 0 |
259 | - | toggle.MouseButton1Click:connect(function() |
259 | + | text2.TextScaled = true |
260 | - | bg.Visible = not bg.Visible |
260 | + | text2.Text = "[X]\n idk" |
261 | text3 = Instance.new("TextLabel", framesk3) | |
262 | - | local pos = copy.Position -UDim2.new(0,0,0,29) |
262 | + | text3.BackgroundTransparency = 1 |
263 | - | for _,data in pairs(attack_data) do |
263 | + | text3.Size = UDim2.new(1, 0, 1, 0) |
264 | - | local new = copy:Clone() |
264 | + | text3.Position = UDim2.new(0, 0, 0, 0) |
265 | - | pos = pos +UDim2.new(0,0,0,29) |
265 | + | text3.TextColor3 = Color3.new(255, 255, 0) |
266 | - | container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29) |
266 | + | text3.TextStrokeTransparency = 0 |
267 | - | new.Position = pos |
267 | + | text3.FontSize = Enum.FontSize.Size18 |
268 | - | new.Text = data.Name.."["..data.Key.."]" |
268 | + | text3.Font = Enum.Font.SourceSansLight |
269 | - | new.Visible = true |
269 | + | text3.BorderSizePixel = 0 |
270 | - | spawn(function() |
270 | + | text3.TextScaled = false |
271 | text3.Text = "[C]\n aaaaa" | |
272 | - | if not new.TextFits then |
272 | + | text4 = Instance.new("TextLabel", framesk4) |
273 | - | new.TextScaled = true |
273 | + | text4.BackgroundTransparency = 1 |
274 | text4.Size = UDim2.new(1, 0, 1, 0) | |
275 | text4.Position = UDim2.new(0, 0, 0, 0) | |
276 | - | new.Parent = container |
276 | + | text4.TextColor3 = Color3.new(255, 255, 0) |
277 | - | new.MouseButton1Click:connect(function() |
277 | + | text4.TextStrokeTransparency = 0 |
278 | - | movename.Text = data.Name |
278 | + | text4.FontSize = Enum.FontSize.Size18 |
279 | - | movedesc.Text = data.Description |
279 | + | text4.Font = Enum.Font.SourceSansLight |
280 | - | spawn(function() |
280 | + | text4.BorderSizePixel = 0 |
281 | text4.TextScaled = true | |
282 | - | if not movename.TextFits then |
282 | + | text4.Text = "[V]\n kil me" |
283 | - | movename.TextScaled = true |
283 | + | |
284 | ArtificialHB = Instance.new("BindableEvent", hoh.PlayerGui) | |
285 | - | movename.TextScaled = false |
285 | + | ArtificialHB.Name = "Heartbeat" |
286 | hoh.PlayerGui:WaitForChild("Heartbeat") | |
287 | - | if not movedesc.TextFits then |
287 | + | frame = 0.033333333333333 |
288 | - | movename.TextScaled = true |
288 | + | tf = 0 |
289 | allowframeloss = false | |
290 | - | movename.TextScaled = false |
290 | + | tossremainder = false |
291 | lastframe = tick() | |
292 | - | end) |
292 | + | hoh.PlayerGui.Heartbeat:Fire() |
293 | local gg = false | |
294 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
295 | - | --[[ Functions ]]-- |
295 | + | |
296 | if hoh.PlayerGui:FindFirstChild("Heartbeat") == nil then | |
297 | - | function addattack(keycode, func) |
297 | + | gg = true |
298 | - | if keycode ~= "MouseClick" then |
298 | + | |
299 | - | input.InputBegan:connect(function(inp) |
299 | + | if gg == true then |
300 | - | if inp.KeyCode == keycode and not input:GetFocusedTextBox() then |
300 | + | return |
301 | - | func() |
301 | + | |
302 | tf = tf + s | |
303 | - | end) |
303 | + | if frame <= tf then |
304 | if allowframeloss then | |
305 | - | mouse.Button1Down:connect(function() |
305 | + | hoh.PlayerGui.Heartbeat:Fire() |
306 | - | func() |
306 | + | lastframe = tick() |
307 | - | end) |
307 | + | |
308 | for i = 1, math.floor(tf / frame) do | |
309 | hoh.PlayerGui.Heartbeat:Fire() | |
310 | - | function attackend(keycode, func) |
310 | + | |
311 | - | input.InputEnded:connect(function(inp) |
311 | + | lastframe = tick() |
312 | - | if inp.KeyCode == keycode and not input:GetFocusedTextBox() then |
312 | + | |
313 | - | func() |
313 | + | if tossremainder then |
314 | tf = 0 | |
315 | else | |
316 | tf = tf - frame * math.floor(tf / frame) | |
317 | - | function swait(t) |
317 | + | |
318 | - | if t then |
318 | + | |
319 | - | for i = 0, t do |
319 | + | |
320 | - | game:GetService('RunService').Stepped:wait(0) |
320 | + | ) |
321 | swait = function(num) | |
322 | ||
323 | - | game:GetService('RunService').Stepped:wait(0) |
323 | + | if num == 0 or num == nil then |
324 | ArtificialHB.Event:wait() | |
325 | - | return true |
325 | + | |
326 | for i = 0, num do | |
327 | - | function fade(obj, dest, grow) |
327 | + | ArtificialHB.Event:wait() |
328 | - | spawn(function() |
328 | + | |
329 | - | local oldcf = obj.CFrame |
329 | + | |
330 | - | for i = 0, 10 do |
330 | + | |
331 | - | if grow then |
331 | + | local RbxUtility = LoadLibrary("RbxUtility") |
332 | - | obj.Size = obj.Size +Vector3.new(1,1,1) |
332 | + | local Create = RbxUtility.Create |
333 | - | obj.CFrame = oldcf |
333 | + | RemoveOutlines = function(part) |
334 | ||
335 | - | obj.Transparency = obj.Transparency +0.1 |
335 | + | part.TopSurface = 10 |
336 | end | |
337 | CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
338 | - | if dest then |
338 | + | |
339 | - | obj:Destroy() |
339 | + | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) |
340 | RemoveOutlines(Part) | |
341 | return Part | |
342 | end | |
343 | - | function replacejoint(name) |
343 | + | |
344 | - | local j = torso:FindFirstChild(name) |
344 | + | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
345 | - | if not j then j = char.HumanoidRootPart:FindFirstChild(name) end |
345 | + | |
346 | - | if j then |
346 | + | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) |
347 | - | if true then |
347 | + | if Mesh == "SpecialMesh" then |
348 | - | local already = j.Parent:FindFirstChild(j.Name.." Replacement") |
348 | + | Msh.MeshType = MeshType |
349 | - | local new = Instance.new("Weld") |
349 | + | Msh.MeshId = MeshId |
350 | - | local c0 = j.C0 |
350 | + | |
351 | - | local c1 = j.C1 |
351 | + | return Msh |
352 | - | new.Part0 = j.Part0 |
352 | + | |
353 | - | j.Part0 = nil |
353 | + | |
354 | - | new.Name = j.Name.." Replacement" |
354 | + | CreateWeld = function(Parent, Part0, Part1, C0, C1) |
355 | - | if already then c0 = already.C0 c1 = already.C1 already:Destroy() end |
355 | + | |
356 | - | new.Parent = j.Parent |
356 | + | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) |
357 | - | new.Part1 = j.Part1 |
357 | + | return Weld |
358 | - | new.C0 = c0 |
358 | + | |
359 | - | new.C1 = c1 |
359 | + | |
360 | - | return new |
360 | + | CFuncs = { |
361 | Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
362 | ||
363 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
364 | - | function removejoint(name, fast) |
364 | + | RemoveOutlines(Part) |
365 | - | local j = torso:FindFirstChild(name.." Replacement") |
365 | + | return Part |
366 | - | if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end |
366 | + | |
367 | - | if j then |
367 | + | |
368 | - | local p0 = j.Part0 |
368 | + | , |
369 | - | if p0 ~= nil then |
369 | + | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
370 | - | local c0 = j.C0 |
370 | + | |
371 | - | local c1 = j.C1 |
371 | + | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) |
372 | - | j:Destroy() |
372 | + | if Mesh == "SpecialMesh" then |
373 | - | local new = p0:FindFirstChild(name) |
373 | + | Msh.MeshType = MeshType |
374 | - | local ac0 = new.C0 |
374 | + | Msh.MeshId = MeshId |
375 | - | local ac1 = new.C1 |
375 | + | |
376 | - | new.Part0 = p0 |
376 | + | return Msh |
377 | - | new.C0 = c0 |
377 | + | |
378 | - | new.C1 = c1 |
378 | + | |
379 | - | spawn(function() |
379 | + | , |
380 | - | if name ~= "RootJoint" then |
380 | + | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) |
381 | - | if not fast then |
381 | + | |
382 | - | for i = 0, 0.6, 0.1 do |
382 | + | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) |
383 | - | print(i) |
383 | + | if Mesh == "SpecialMesh" then |
384 | - | new.C0 = new.C0:Lerp(ac0, 0.5) |
384 | + | Msh.MeshType = MeshType |
385 | - | new.C1 = new.C1:lerp(ac1, 0.5) |
385 | + | Msh.MeshId = MeshId |
386 | - | swait() |
386 | + | |
387 | return Msh | |
388 | end | |
389 | - | new.C0 = new.C0:Lerp(ac0, 1) |
389 | + | |
390 | - | new.C1 = new.C1:lerp(ac1, 1) |
390 | + | , |
391 | Weld = {Create = function(Parent, Part0, Part1, C0, C1) | |
392 | ||
393 | - | end) |
393 | + | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) |
394 | return Weld | |
395 | end | |
396 | } | |
397 | - | function fixalljoints(fast) |
397 | + | , |
398 | - | for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do |
398 | + | Sound = {Create = function(id, par, vol, pit) |
399 | - | removejoint(v, fast) |
399 | + | |
400 | coroutine.resume(coroutine.create(function() | |
401 | ||
402 | - | function getnewjoints() |
402 | + | local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace}) |
403 | - | local rs = replacejoint("Right Shoulder") |
403 | + | wait() |
404 | - | local ls = replacejoint("Left Shoulder") |
404 | + | S:play() |
405 | - | local rh = replacejoint("Right Hip") |
405 | + | game:GetService("Debris"):AddItem(S, 6) |
406 | - | local lh = replacejoint("Left Hip") |
406 | + | |
407 | - | local neck = replacejoint("Neck") |
407 | + | )) |
408 | - | local rj = replacejoint("RootJoint") |
408 | + | |
409 | - | return rs,ls,rh,lh,neck,rj |
409 | + | |
410 | , | |
411 | - | function knockback(hit, force) |
411 | + | ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) |
412 | - | local bv = Instance.new("BodyVelocity") |
412 | + | |
413 | - | bv.MaxForce = huge |
413 | + | local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread}) |
414 | - | bv.Velocity = force |
414 | + | return fp |
415 | - | bv.Parent = hit |
415 | + | |
416 | - | game:GetService('Debris'):AddItem(bv, 0.15) |
416 | + | |
417 | } | |
418 | - | function soundeffect(id, volume, speed, parent, extra) |
418 | + | |
419 | - | extra = extra or {} |
419 | + | |
420 | - | local func = function() |
420 | + | |
421 | - | local s = LoadLibrary("RbxUtility").Create("Sound")() |
421 | + | rayCast = function(Position, Direction, Range, Ignore) |
422 | - | s.Name = "WSoundEffect" |
422 | + | |
423 | - | s.Volume = volume |
423 | + | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) |
424 | - | s.PlaybackSpeed = speed |
424 | + | |
425 | - | s.SoundId = id |
425 | + | |
426 | - | s.Looped = false |
426 | + | local GetNearest = function(obj, distance) |
427 | - | if extra.Pitch then |
427 | + | |
428 | - | local ef = Instance.new("PitchShiftSoundEffect") |
428 | + | local last, lastx = distance + 1, nil |
429 | - | ef.Octave = extra.Pitch or 1 |
429 | + | for i,v in pairs(workspace:GetChildren()) do |
430 | - | ef.Enabled = true |
430 | + | if v:IsA("Model") and v ~= char and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then |
431 | - | ef.Priority = 0 |
431 | + | local t = v.Torso |
432 | - | ef.Parent = s |
432 | + | local dist = (t.Position - obj.Position).magnitude |
433 | if dist <= distance and dist < last then | |
434 | - | s.Parent = parent |
434 | + | last = dist |
435 | - | if extra.Immune then |
435 | + | lastx = v |
436 | - | Instance.new("StringValue", s).Name = "Immune" |
436 | + | |
437 | end | |
438 | - | s:Play() |
438 | + | |
439 | - | s.TimePosition = extra.Start or 0 |
439 | + | return lastx |
440 | - | repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999) |
440 | + | |
441 | - | s:Destroy() |
441 | + | |
442 | - | return s |
442 | + | |
443 | --[[armweld = Instance.new("Weld", char.Torso) | |
444 | - | if extra.ForceWait then |
444 | + | armweld.C0 = CFrame.new(1.5, .5, 0) |
445 | - | func() |
445 | + | armweld.C1 = CFrame.new(0, .5, 0) |
446 | armweld.Part0 = char.Torso | |
447 | - | return spawn(func) |
447 | + | armweld.Part1 = char["Right Arm"]] |
448 | ||
449 | local Fhead = Instance.new("Part", char) | |
450 | - | function getfunction(nm) |
450 | + | Fhead.Name = "a" |
451 | - | if nm == "Burn" then |
451 | + | Fhead.Size = Vector3.new(2, 1, 1) |
452 | - | return function(character, data) |
452 | + | Fhead.Transparency = 1 |
453 | - | if character:FindFirstChild("Burn") then |
453 | + | Fhead.CanCollide = false |
454 | - | return |
454 | + | M = Instance.new("SpecialMesh", Fhead) |
455 | M.Scale = Vector3.new(1.26,1.26,1.26) | |
456 | - | local val = Instance.new("StringValue") |
456 | + | Das = Instance.new("Decal", Fhead) |
457 | - | val.Name = "Burn" |
457 | + | Das.Texture = "rbxassetid://660774132" |
458 | - | val.Parent = character |
458 | + | Das.Transparency = 1 |
459 | - | for i = 1, data.Time*100 do |
459 | + | |
460 | - | if not character:FindFirstChild("Burn") then |
460 | + | |
461 | - | break |
461 | + | local har1 = Instance.new("Part", char.Head) |
462 | har1.BrickColor = BrickColor.new("Brown") | |
463 | - | if i%data.Rate == 0 then |
463 | + | har1.Name = "Hair" |
464 | - | local hum = character:FindFirstChildOfClass("Humanoid") |
464 | + | har1.formFactor = 0 |
465 | - | if hum then |
465 | + | har1.Size = Vector3.new(0,-0.25,0) |
466 | - | hurt(torso, data.Damage) |
466 | + | har1.BottomSurface = 0 |
467 | har1.TopSurface = 0 | |
468 | - | soundeffect(soundlist.Burn, 1, 1, torso) |
468 | + | har1.CanCollide = false |
469 | - | spawn(function() |
469 | + | Mesh = Instance.new("SpecialMesh",har1) |
470 | - | for i = 1, 4 do |
470 | + | Mesh.MeshId = "http://www.roblox.com/asset/?id=13070796" |
471 | - | spawn(function() |
471 | + | Mesh.TextureId = "http://www.roblox.com/asset/?id=13694600" |
472 | - | local p = Instance.new("Part") |
472 | + | Mesh.Scale=Vector3.new(1.01, .99, 1.01) |
473 | - | p.Material = "Neon" |
473 | + | local bWeld = Instance.new("Weld", char.Head) |
474 | - | p.CanCollide = false |
474 | + | bWeld.Part0 = char.Head |
475 | - | p.Anchored = true |
475 | + | bWeld.Part1 = har1 |
476 | - | p.Size = Vector3.new(0.5,0.5,0.5) |
476 | + | bWeld.C1 = CFrame.new(0,.4,0) |
477 | - | p.Name = "fireeffect" |
477 | + | |
478 | - | p.Color = data.Color or Color3.new(1,162/255,0) |
478 | + | |
479 | - | p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) |
479 | + | local main = Instance.new("Part", char.Torso) |
480 | - | p.Parent = torso |
480 | + | main.Size = Vector3.new(.1, .1, .1) |
481 | - | local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) |
481 | + | main.BrickColor = BrickColor.new("White") |
482 | - | local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset |
482 | + | main.TopSurface = "SmoothNoOutlines" |
483 | - | local opcf = p.CFrame |
483 | + | main.Name = "asd" |
484 | - | local opsz = p.Size |
484 | + | main.Transparency = 1 |
485 | - | for i = 0, 1, 0.01 do |
485 | + | main.CanCollide = false |
486 | - | p.Transparency = i/1 |
486 | + | |
487 | - | local cf = p.CFrame |
487 | + | local Handle = Instance.new("Part",d) |
488 | - | p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1) |
488 | + | Handle.Size = Vector3.new(0.3, 1.8, 3) |
489 | - | p.CFrame = cf |
489 | + | Handle.Name = "Pan" |
490 | - | p.CFrame = opcf:Lerp( endcf*CFrame.Angles(math.rad(math.sin(i)*360),math.rad(math.cos(i)*360),math.rad(math.sin(i)*360)), i/1 ) |
490 | + | Handle:BreakJoints() |
491 | - | swait() |
491 | + | Handle.Anchored = false |
492 | - | end |
492 | + | Handle.Transparency = 1 |
493 | - | p:Destroy() |
493 | + | Handle.CanCollide = false |
494 | - | swait(5) |
494 | + | Handle.Shape = "Block" |
495 | - | end) |
495 | + | Handle.TopSurface = "SmoothNoOutlines" |
496 | - | swait() |
496 | + | Handle.BottomSurface = "SmoothNoOutlines" |
497 | ddd = Instance.new("SpecialMesh",Handle) | |
498 | - | end) |
498 | + | ddd.Scale=Vector3.new(2, 2, 2) |
499 | ddd.MeshId = "http://www.roblox.com/asset/?id=11820238" | |
500 | - | swait() |
500 | + | ddd.TextureId = "http://www.roblox.com/asset/?id=11820143" |
501 | local Hitbox = Instance.new("Part",d) | |
502 | - | val:Destroy() |
502 | + | Hitbox.Size = Vector3.new(0.3, 1.8, 3) |
503 | Hitbox.Name = "Hitbox" | |
504 | Hitbox:BreakJoints() | |
505 | - | if nm == "Poison" then |
505 | + | Hitbox.Anchored = false |
506 | - | return function(character, data) |
506 | + | Hitbox.Transparency = 1 |
507 | Hitbox.CanCollide = false | |
508 | Hitbox.Shape = "Block" | |
509 | Hitbox.TopSurface = "SmoothNoOutlines" | |
510 | - | if nm == "Freeze" then |
510 | + | Hitbox.BottomSurface = "SmoothNoOutlines" |
511 | - | return function(character, t) |
511 | + | ddd = Instance.new("SpecialMesh",Handle) |
512 | - | if not character:FindFirstChild("Frozen") then |
512 | + | ddd.Scale=Vector3.new(2, 2, 2) |
513 | - | local val = Instance.new("StringValue") |
513 | + | ddd.MeshId = "http://www.roblox.com/asset/?id=11820238" |
514 | - | val.Name = "Frozen" |
514 | + | ddd.TextureId = "http://www.roblox.com/asset/?id=11820143" |
515 | - | val.Parent = character |
515 | + | local FakeHandle = Instance.new("Part",d) |
516 | - | local unanchor = {} |
516 | + | FakeHandle.Size = Vector3.new(0.3, 1.9, 3) |
517 | - | local freezeparts = {} |
517 | + | FakeHandle.Name = "FakeHandle" |
518 | - | soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso")) |
518 | + | FakeHandle:BreakJoints() |
519 | - | for _,v in pairs(character:GetDescendants()) do |
519 | + | FakeHandle.Anchored = false |
520 | - | if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then |
520 | + | FakeHandle.Transparency = 1 |
521 | - | if v.Transparency ~= 1 then |
521 | + | FakeHandle.CanCollide = false |
522 | - | if not v.Anchored then |
522 | + | FakeHandle.Shape = "Block" |
523 | - | table.insert(unanchor, v) |
523 | + | FakeHandle.TopSurface = "SmoothNoOutlines" |
524 | FakeHandle.BottomSurface = "SmoothNoOutlines" | |
525 | - | v.Anchored = true |
525 | + | ddd = Instance.new("SpecialMesh",FakeHandle) |
526 | - | local new = v:Clone() |
526 | + | ddd.Scale=Vector3.new(2, 2, 2) |
527 | - | new:ClearAllChildren() |
527 | + | ddd.MeshId = "http://www.roblox.com/asset/?id=11820238" |
528 | - | local mesh = v:FindFirstChildOfClass("SpecialMesh") |
528 | + | ddd.TextureId = "http://www.roblox.com/asset/?id=11820143" |
529 | - | if mesh then |
529 | + | |
530 | - | mesh = mesh:Clone() |
530 | + | |
531 | - | mesh.TextureId = "" |
531 | + | |
532 | - | if mesh.Scale ~= Vector3.new(1,1,1) then |
532 | + | local aWeld = Instance.new("Weld", char.Head) |
533 | - | mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05) |
533 | + | aWeld.Part0 = char.Head |
534 | - | end |
534 | + | aWeld.Part1 = Fhead |
535 | - | mesh.Parent = new |
535 | + | local aWeld = Instance.new("Weld", char.Torso) |
536 | aWeld.Part0 = char.Torso | |
537 | - | new.Size = new.Size+Vector3.new(0.05,0.05,0.05) |
537 | + | aWeld.C1 = CFrame.new(0,1.2,.5) |
538 | - | new.CanCollide = false |
538 | + | local aWeld = Instance.new("Weld", char.Torso) |
539 | - | new.Anchored = true |
539 | + | aWeld.Part0 = char.Torso |
540 | - | new.Name = "freezepart" |
540 | + | aWeld.Part1 = A1 |
541 | - | new.Material = "Ice" |
541 | + | aWeld.C1 = CFrame.new(.5,-.5,.5) |
542 | - | new.BrickColor = BrickColor.new("Pastel light blue") |
542 | + | local aWeld = Instance.new("Weld", char.Torso) |
543 | - | new.TopSurface = "Smooth" |
543 | + | aWeld.Part0 = char.Torso |
544 | - | new.BottomSurface = "Smooth" |
544 | + | aWeld.Part1 = A2 |
545 | - | new.Transparency = 0 |
545 | + | aWeld.C1 = CFrame.new(-.5,-.5,.5) |
546 | - | new.CFrame = v.CFrame |
546 | + | local aWeld = Instance.new("Weld", char.Torso) |
547 | - | new.Parent = v |
547 | + | aWeld.Part0 = char.Torso |
548 | - | table.insert(freezeparts, new) |
548 | + | aWeld.Part1 = A3 |
549 | aWeld.C1 = CFrame.new(0,-1,.5) | |
550 | local aWeld = Instance.new("Weld", char.Torso) | |
551 | aWeld.Part0 = char.Torso | |
552 | - | swait(50*t) |
552 | + | aWeld.Part1 = A4 |
553 | - | soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso")) |
553 | + | aWeld.C1 = CFrame.new(.6,-1,0) |
554 | - | val:Destroy() |
554 | + | local aWeld = Instance.new("Weld", char.Torso) |
555 | - | for _,v in pairs(unanchor) do |
555 | + | aWeld.Part0 = char.Torso |
556 | - | v.Anchored = false |
556 | + | aWeld.Part1 = A5 |
557 | aWeld.C1 = CFrame.new(-.6,-1,0) | |
558 | - | for _,v in pairs(freezeparts) do |
558 | + | local aWeld = Instance.new("Weld", char.Torso) |
559 | - | v.Anchored = false |
559 | + | aWeld.Part0 = char.Torso |
560 | - | v.CanCollide = true |
560 | + | aWeld.Part1 = A6 |
561 | - | v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25 |
561 | + | aWeld.C1 = CFrame.new(0,-1,-.42) |
562 | - | game:GetService('Debris'):AddItem(v, 5) |
562 | + | local aWeld = Instance.new("Weld", char.Torso) |
563 | aWeld.Part0 = char.Torso | |
564 | aWeld.Part1 = A7 | |
565 | aWeld.C1 = CFrame.new(0,.6,0) | |
566 | local aWeld = Instance.new("Weld", char.Torso) | |
567 | - | if nm == "Stun" then |
567 | + | aWeld.Part0 = char.Torso |
568 | - | return function(character, t) |
568 | + | aWeld.Part1 = A8 |
569 | - | local humanoid = character:FindFirstChildOfClass("Humanoid") |
569 | + | aWeld.C1 = CFrame.new(0,-1,-.55) |
570 | - | local val = Instance.new("StringValue") |
570 | + | local aWeld = Instance.new("Weld", char.Torso) |
571 | - | val.Name = "Stun" |
571 | + | aWeld.Part0 = char.Torso |
572 | - | val.Parent = character |
572 | + | aWeld.Part1 = A9 |
573 | - | if humanoid then |
573 | + | aWeld.C1 = CFrame.new(0,.6,-.55) |
574 | - | humanoid.PlatformStand = true |
574 | + | local aWeld = Instance.new("Weld", char.Torso) |
575 | aWeld.Part0 = char.Torso | |
576 | - | for i = 1, t*100 do |
576 | + | aWeld.Part1 = da |
577 | - | if humanoid then |
577 | + | aWeld.C1 = CFrame.new(0,.2,.5) |
578 | - | humanoid.PlatformStand = true |
578 | + | local aWeld = Instance.new("Weld", char.Torso) |
579 | aWeld.Part0 = char.Torso | |
580 | - | swait() |
580 | + | aWeld.Part1 = da1 |
581 | aWeld.C1 = CFrame.new(0,.2,.5) | |
582 | - | if humanoid then |
582 | + | |
583 | - | humanoid.PlatformStand = false |
583 | + | Weld = Instance.new("Weld",Handle) |
584 | Weld.Part0 = Weld.Parent | |
585 | - | val:Destroy() |
585 | + | Weld.Part1 = FakeHandle |
586 | Weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,-math.rad(0)) | |
587 | Weld = Instance.new("Weld",Hitbox) | |
588 | - | if nm == "Paralyze" then |
588 | + | Weld.Part0 = Weld.Parent |
589 | - | return function(character, t) |
589 | + | Weld.Part1 = FakeHandle |
590 | Weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,-math.rad(0)) | |
591 | FakeHandleWeld = Instance.new("Weld",FakeHandle) | |
592 | FakeHandleWeld.Part0 = FakeHandle | |
593 | - | return |
593 | + | FakeHandleWeld.Part1 = char["Right Arm"] |
594 | FakeHandleWeld.C0 = CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)) | |
595 | - | function showdamage(cf, txtdata) |
595 | + | |
596 | - | --[[ |
596 | + | |
597 | - | [Text Data] |
597 | + | local manWeld = Instance.new("Weld", char.Torso) |
598 | - | Font |
598 | + | manWeld.Part0 = char.Torso |
599 | - | Text |
599 | + | manWeld.Part1 = main |
600 | - | Color |
600 | + | manWeld.C1 = CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(40),-math.rad(90)) |
601 | - | StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1} |
601 | + | manWeld.C0 = CFrame.new(0,-0.4,0)--*CFrame.Angles(math.rad(90),0,0) |
602 | - | --]] |
602 | + | |
603 | - | local p = Instance.new("Part") |
603 | + | local cWeld = Instance.new("Weld", char.Torso) |
604 | - | p.Name = "DamagePart" |
604 | + | cWeld.Part0 = main |
605 | - | p.CanCollide = false |
605 | + | --cWeld.C1 = CFrame.new(0,0,0)*CFrame.angles(0,0,0) |
606 | - | p.Anchored = true |
606 | + | ----- |
607 | - | p.Transparency = 1 |
607 | + | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) |
608 | - | p.Size = Vector3.new(0.1,0.1,0.1) |
608 | + | NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) |
609 | - | p.CFrame = cf |
609 | + | local RW = newMotor(char.Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) |
610 | - | local gui = Instance.new("BillboardGui") |
610 | + | local LW = newMotor(char.Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) |
611 | - | gui.Name = "GUI" |
611 | + | local RH = newMotor(char.Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0)) |
612 | - | gui.Adornee = p |
612 | + | local LH = newMotor(char.Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0)) |
613 | - | gui.LightInfluence = 0 |
613 | + | RootJoint.C1 = CFrame.new(0, 0, 0) |
614 | - | gui.Size = UDim2.new(1.5,0,0.7,0) |
614 | + | RootJoint.C0 = CFrame.new(0, 0, 0) |
615 | - | gui.StudsOffset = Vector3.new(0,0.5,0) |
615 | + | char.Torso.Neck.C1 = CFrame.new(0, 0, 0) |
616 | - | local tl = Instance.new("TextLabel") |
616 | + | char.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) |
617 | - | tl.Name = "tl" |
617 | + | local rarmc1 = RW.C1 |
618 | - | tl.BackgroundTransparency = 1 |
618 | + | local larmc1 = LW.C1 |
619 | - | tl.Position = UDim2.new(0,0,0,0) |
619 | + | local rlegc1 = RH.C1 |
620 | - | tl.Size = UDim2.new(2,0,2,0) |
620 | + | local llegc1 = LH.C1 |
621 | - | tl.Font = txtdata.Font or "SourceSans" |
621 | + | local resetc1 = false |
622 | - | tl.TextColor3 = txtdata.Color or Color3.new(1,0,0) |
622 | + | PlayAnimationFromTable = function(table, speed, bool) |
623 | - | tl.Text = txtdata.Text or "" |
623 | + | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) |
624 | - | tl.TextScaled = true |
624 | + | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, table[2], speed) |
625 | - | tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new() |
625 | + | RW.C0 = clerp(RW.C0, table[3], speed) |
626 | - | tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1 |
626 | + | LW.C0 = clerp(LW.C0, table[4], speed) |
627 | - | tl.Rotation = math.random(-10,10) |
627 | + | RH.C0 = clerp(RH.C0, table[5], speed) |
628 | - | tl.Parent = gui |
628 | + | LH.C0 = clerp(LH.C0, table[6], speed) |
629 | - | gui.Parent = p |
629 | + | if bool == true and resetc1 == false then |
630 | - | local og = gui |
630 | + | resetc1 = true |
631 | - | gui = og:Clone() |
631 | + | RootJoint.C1 = RootJoint.C1 |
632 | - | gui.Parent = og.Parent |
632 | + | char.Torso.Neck.C1 = char.Torso.Neck.C1 |
633 | - | tl = gui.tl |
633 | + | RW.C1 = rarmc1 |
634 | - | og:Destroy() |
634 | + | LW.C1 = larmc1 |
635 | - | p.Parent = char |
635 | + | RH.C1 = rlegc1 |
636 | - | spawn(function() |
636 | + | LH.C1 = llegc1 |
637 | - | for i = 1, 100 do |
637 | + | |
638 | - | gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100) |
638 | + | |
639 | - | tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X |
639 | + | |
640 | - | if txtdata.StrokeColor then |
640 | + | -- |
641 | - | tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X |
641 | + | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) |
642 | ||
643 | if hit.Parent == nil then | |
644 | return | |
645 | - | p:Destroy() |
645 | + | |
646 | local h = hit.Parent:FindFirstChild("Humanoid") | |
647 | for _,v in pairs(hit.Parent:children()) do | |
648 | - | function stabilizer(obj) |
648 | + | if v:IsA("Humanoid") then |
649 | - | local bp = Instance.new("BodyPosition") |
649 | + | h = v |
650 | - | bp.MaxForce = huge |
650 | + | |
651 | - | bp.Position = obj.Position |
651 | + | |
652 | - | bp.Parent = obj |
652 | + | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then |
653 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
654 | - | function setshape(obj, typ) |
654 | + | return |
655 | - | local m = obj:FindFirstChildOfClass("SpecialMesh") or Instance.new("SpecialMesh") |
655 | + | |
656 | - | m.MeshId = typ == "Ring" and "rbxassetid://3270017" or "" |
656 | + | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h}) |
657 | - | m.TextureId = "" |
657 | + | game:GetService("Debris"):AddItem(c, 0.5) |
658 | - | if typ == "Ring" then |
658 | + | if HitSound ~= nil and HitPitch ~= nil then |
659 | - | typ = "FileMesh" |
659 | + | CreateSound(HitSound, hit, 1, HitPitch) |
660 | end | |
661 | - | m.MeshType = typ |
661 | + | local Damage = math.random(minim, maxim) |
662 | - | m.Parent = obj |
662 | + | local blocked = false |
663 | local block = hit.Parent:findFirstChild("Block") | |
664 | - | function camshake(direction, intensity, duration) |
664 | + | if block ~= nil and block.className == "IntValue" and block.Value > 0 then |
665 | - | if direction:lower() == "inout" then |
665 | + | blocked = true |
666 | - | workspace.CurrentCamera.FieldOfView = intensity |
666 | + | block.Value = block.Value - 1 |
667 | - | game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play() |
667 | + | print(block.Value) |
668 | - | elseif direction:lower() == "left" then |
668 | + | |
669 | - | humanoid.CameraOffset = Vector3.new(intensity,0,0) |
669 | + | if blocked == false then |
670 | - | game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play() |
670 | + | h.Health = h.Health - Damage |
671 | - | elseif direction:lower() == "right" then |
671 | + | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) |
672 | - | humanoid.CameraOffset = Vector3.new(-intensity,0,0) |
672 | + | |
673 | - | game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play() |
673 | + | h.Health = h.Health - Damage / 2 |
674 | - | elseif direction:lower() == "up" then |
674 | + | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) |
675 | - | humanoid.CameraOffset = Vector3.new(0,intensity,0) |
675 | + | |
676 | - | game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play() |
676 | + | if Type == "Knockdown" then |
677 | - | elseif direction:lower() == "down" then |
677 | + | local hum = hit.Parent.Humanoid |
678 | - | humanoid.CameraOffset = Vector3.new(0,-intensity,0) |
678 | + | hum.PlatformStand = true |
679 | - | game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play() |
679 | + | coroutine.resume(coroutine.create(function(HHumanoid) |
680 | ||
681 | swait(1) | |
682 | - | function hurt(hit, dmg, effect, args) |
682 | + | HHumanoid.PlatformStand = false |
683 | - | --pcall(function() |
683 | + | |
684 | - | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") |
684 | + | ), hum) |
685 | - | if hum then |
685 | + | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit |
686 | - | if hum.Parent ~= char or true then |
686 | + | local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) |
687 | - | if typeof(dmg) == "table" then |
687 | + | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) |
688 | - | dmg = math.random(dmg[1], dmg[2]) |
688 | + | game:GetService("Debris"):AddItem(bodvol, 0.5) |
689 | game:GetService("Debris"):AddItem(rl, 0.5) | |
690 | - | hum.Health = hum.Health - dmg |
690 | + | elseif Type == "Normal" then |
691 | - | if settings.ShowDamageEnabled then |
691 | + | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05}) |
692 | - | local dmgdata = { |
692 | + | if knockback > 0 then |
693 | - | Color = settings.Damage.Color, |
693 | + | vp.Parent = hit.Parent.Torso |
694 | - | StrokeColor = settings.Damage.StrokeColor, |
694 | + | |
695 | - | Font = settings.Damage.Font, |
695 | + | game:GetService("Debris"):AddItem(vp, 0.5) |
696 | - | Text = dmg, |
696 | + | elseif Type == "Up" then |
697 | - | } |
697 | + | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) |
698 | - | showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata) |
698 | + | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) |
699 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
700 | - | if effect then |
700 | + | game:GetService("Debris"):AddItem(bodyVelocity, 1) |
701 | - | if typeof(effect) == "function" then |
701 | + | elseif Type == "Snare" then |
702 | - | local s,m = pcall(effect, hit.CFrame) |
702 | + | local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) |
703 | - | if not s then |
703 | + | game:GetService("Debris"):AddItem(bp, 1) |
704 | - | warn("Error in function: "..m or "unknown") |
704 | + | elseif Type == "Freeze" then |
705 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
706 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame}) | |
707 | - | if typeof(effect) == "string" then |
707 | + | hit.Parent.Torso.Anchored = true |
708 | - | local func = getfunction(effect) |
708 | + | coroutine.resume(coroutine.create(function(Part) |
709 | - | if func then |
709 | + | |
710 | - | local s,m |
710 | + | swait(1.5) |
711 | - | if args then |
711 | + | Part.Anchored = false |
712 | - | s,m = pcall(func, unpack(args)) |
712 | + | |
713 | ), hit.Parent.Torso) | |
714 | - | s,m = pcall(func) |
714 | + | game:GetService("Debris"):AddItem(BodPos, 3) |
715 | game:GetService("Debris"):AddItem(BodGy, 3) | |
716 | - | if not s then |
716 | + | end |
717 | - | warn("Error in function: "..m or "unknown") |
717 | + | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true}) |
718 | game:GetService("Debris"):AddItem(debounce, Delay) | |
719 | c = Instance.new("ObjectValue") | |
720 | c.Name = "creator" | |
721 | c.Value = hoh | |
722 | - | return true |
722 | + | c.Parent = h |
723 | game:GetService("Debris"):AddItem(c, 0.5) | |
724 | end | |
725 | - | --end) |
725 | + | end |
726 | ||
727 | - | local gui = Instance.new("ScreenGui") |
727 | + | ShowDamage = function(Pos, Text, Time, Color) |
728 | - | gui.Name = "Talk" |
728 | + | |
729 | - | gui.Enabled = false |
729 | + | local Rate = 0.033333333333333 |
730 | - | local tl = Instance.new("TextLabel") |
730 | + | if not Pos then |
731 | - | tl.BackgroundColor3 = Color3.new() |
731 | + | local Pos = Vector3.new(0, 0, 0) |
732 | - | tl.BackgroundTransparency = 0.8 |
732 | + | |
733 | - | tl.Position = UDim2.new(0.115,0,0.747,0) |
733 | + | local Text = Text or "" |
734 | - | tl.Size = UDim2.new(0,922,0,151) |
734 | + | local Time = Time or 2 |
735 | - | tl.Font = "SourceSansLight" |
735 | + | if not Color then |
736 | - | tl.Text = "" |
736 | + | local Color = Color3.new(1, 1, 0) |
737 | - | tl.TextWrapped = true |
737 | + | |
738 | - | tl.TextColor3 = Color3.new(1,1,1) |
738 | + | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) |
739 | - | tl.TextXAlignment = "Left" |
739 | + | EffectPart.Anchored = true |
740 | - | tl.TextYAlignment = "Top" |
740 | + | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart}) |
741 | - | tl.TextSize = 19 |
741 | + | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui}) |
742 | - | tl.BorderSizePixel = 0 |
742 | + | game.Debris:AddItem(EffectPart, Time + 0.1) |
743 | - | tl.Parent = gui |
743 | + | EffectPart.Parent = game:GetService("Workspace") |
744 | - | gui.Parent = plr.PlayerGui |
744 | + | delay(0, function() |
745 | - | local function talk(txt) |
745 | + | |
746 | - | gui.Enabled = true |
746 | + | local Frames = Time / Rate |
747 | - | tl.Text = "" |
747 | + | for Frame = 1, Frames do |
748 | - | for i = 1, txt:len() do |
748 | + | wait(Rate) |
749 | - | tl.Text = txt:sub(1,i) |
749 | + | local Percent = Frame / Frames |
750 | - | swait(3) |
750 | + | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) |
751 | TextLabel.TextTransparency = Percent | |
752 | end | |
753 | - | --[[ uhhhhhhhhhhhhhhhh ]]-- |
753 | + | if EffectPart and EffectPart.Parent then |
754 | - | pcall(function() |
754 | + | EffectPart:Destroy() |
755 | - | NS([[ |
755 | + | |
756 | - | local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Starter") |
756 | + | |
757 | - | store:UpdateAsync("y'all", function(old) |
757 | + | ) |
758 | - | old = old or {} |
758 | + | |
759 | - | if typeof(old) ~= "table" then |
759 | + | |
760 | - | old = {} --stop breaking my datastores |
760 | + | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type) |
761 | ||
762 | - | local ok = true |
762 | + | for _,c in pairs(workspace:children()) do |
763 | - | for _,v in pairs(old) do |
763 | + | local hum = c:findFirstChild("Humanoid") |
764 | - | if typeof(v) == "table" then |
764 | + | if hum ~= nil then |
765 | - | if v.name == owner.Name or v.userid == owner.UserId then |
765 | + | local head = c:findFirstChild("Torso") |
766 | - | ok = false |
766 | + | if head ~= nil then |
767 | - | table.insert(v.uses, tick()) |
767 | + | local targ = head.Position - Part.Position |
768 | local mag = targ.magnitude | |
769 | if mag <= magni and c.Name ~= hoh.Name then | |
770 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1) | |
771 | - | if ok then |
771 | + | |
772 | - | table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}}) |
772 | + | |
773 | end | |
774 | - | return old |
774 | + | |
775 | end | |
776 | - | script:Destroy() |
776 | + | |
777 | - | ]], workspace) |
777 | + | EffectModel = Instance.new("Model", char) |
778 | EffectModel.Name = "Effects" | |
779 | - | --[[ Actual script :OOOOOOOOOO ]]-- |
779 | + | Effects = { |
780 | Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
781 | - | if settings.CustomAnim then |
781 | + | |
782 | - | if char:FindFirstChild("Animate") then |
782 | + | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
783 | - | char.Animate:Destroy() |
783 | + | prt.Anchored = true |
784 | prt.CFrame = cframe | |
785 | - | for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do |
785 | + | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
786 | - | track:Stop() |
786 | + | game:GetService("Debris"):AddItem(prt, 10) |
787 | if Type == 1 or Type == nil then | |
788 | - | humanoid.Running:connect(function(ws) |
788 | + | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) |
789 | - | movespeed = ws |
789 | + | |
790 | if Type == 2 then | |
791 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
792 | - | local p = Instance.new("Part") |
792 | + | |
793 | - | p.Anchored = true |
793 | + | |
794 | - | p.Material = "Grass" |
794 | + | |
795 | - | p.BrickColor = BrickColor.new("Bright green") |
795 | + | |
796 | - | p.CanCollide = true |
796 | + | , |
797 | - | p.Size = Vector3.new(1,7,7) |
797 | + | Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
798 | - | p.CFrame = rootpart.CFrame *CFrame.new(0,-3,0) *CFrame.Angles(0,0,math.rad(90)) |
798 | + | |
799 | - | local m = Instance.new("SpecialMesh") |
799 | + | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
800 | - | m.MeshType = "Cylinder" |
800 | + | prt.Anchored = true |
801 | - | m.Parent = p |
801 | + | prt.CFrame = cframe |
802 | - | p.Parent = char |
802 | + | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
803 | - | local s = Instance.new("Sound") |
803 | + | game:GetService("Debris"):AddItem(prt, 10) |
804 | - | s.Volume = 2 |
804 | + | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) |
805 | - | s.Looped = true |
805 | + | |
806 | - | s.SoundId = "rbxassetid://745717581" |
806 | + | |
807 | - | s.Parent = char |
807 | + | , |
808 | - | s:Play() |
808 | + | Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
809 | - | local pl = Instance.new("PointLight") |
809 | + | |
810 | - | pl.Brightness = 0.2 |
810 | + | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
811 | - | pl.Color = Color3.new(180/255,181/255,255/255) |
811 | + | prt.Anchored = true |
812 | - | pl.Range = 16 |
812 | + | prt.CFrame = cframe |
813 | - | pl.Shadows = false |
813 | + | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
814 | - | pl.Parent = torso |
814 | + | game:GetService("Debris"):AddItem(prt, 10) |
815 | - | humanoid.WalkSpeed = 0 |
815 | + | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) |
816 | - | humanoid.JumpPower = 0 |
816 | + | |
817 | - | humanoid.CameraOffset = Vector3.new(0,-1,0) |
817 | + | |
818 | - | local tween = game:GetService('TweenService'):Create(game:GetService('Lighting'), TweenInfo.new(30, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {ClockTime = 0, Ambient = Color3.new(), OutdoorAmbient = Color3.new(), Brightness = 0}) |
818 | + | , |
819 | - | tween:Play() |
819 | + | Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
820 | - | local tweendone,effectsallowed = false,false |
820 | + | |
821 | - | spawn(function() |
821 | + | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
822 | - | tween.Completed:wait() |
822 | + | prt.Anchored = true |
823 | - | tweendone = true |
823 | + | prt.CFrame = cframe |
824 | - | swait(60*60*2) |
824 | + | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
825 | - | talk("Hi, "..plr.Name..".") |
825 | + | game:GetService("Debris"):AddItem(prt, 10) |
826 | - | swait(60*7) |
826 | + | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) |
827 | - | talk("Sorry for not making my last script for SB something huge and epic.") |
827 | + | |
828 | - | swait(60*7) |
828 | + | |
829 | - | talk("But hopefully this is satisfactory.") |
829 | + | , |
830 | - | swait(60*7) |
830 | + | Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
831 | - | talk("I appreciate people using my scripts because it gives me a feeling of joy to see someone using something I created.") |
831 | + | |
832 | - | swait(60*10) |
832 | + | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) |
833 | - | talk("I'll still be scripting on ROBLOX, but not for script builder anymore.") |
833 | + | prt.Anchored = true |
834 | - | swait(60*7) |
834 | + | prt.CFrame = cframe |
835 | - | talk("My current project as of now is A Block in Time.") |
835 | + | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
836 | - | swait(60*7) |
836 | + | game:GetService("Debris"):AddItem(prt, 10) |
837 | - | talk("Hopefully there will come soon a new generation of scripters on SB for the future. It would allow for a new age of different types of scripts.") |
837 | + | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) |
838 | - | swait(60*7) |
838 | + | |
839 | - | talk("If you ever want to talk to me, I can be contacted at Nobody#3907 on disc, or WafflesAreVeryGood on ROBLOX.") |
839 | + | |
840 | - | swait(60*7) |
840 | + | , |
841 | - | talk("There isn't much else to say, but I hope you enjoy this last script of mine.") |
841 | + | Break = {Create = function(brickcolor, cframe, x1, y1, z1) |
842 | - | swait(60*7) |
842 | + | |
843 | - | talk("Thank you.") |
843 | + | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) |
844 | - | swait(60*5) |
844 | + | prt.Anchored = true |
845 | - | gui.Enabled = false |
845 | + | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) |
846 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
847 | local num = math.random(10, 50) / 1000 | |
848 | - | addattack("MouseClick", function() |
848 | + | game:GetService("Debris"):AddItem(prt, 10) |
849 | - | if not effectsallowed then |
849 | + | table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100}) |
850 | - | return |
850 | + | |
851 | } | |
852 | - | mouse.TargetFilter = workspace.CurrentCamera |
852 | + | |
853 | - | local hit = mouse.Hit |
853 | + | BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) |
854 | - | local tar = mouse.Target |
854 | + | |
855 | - | local surface = mouse.TargetSurface |
855 | + | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) |
856 | - | mouse.TargetFilter = nil |
856 | + | prt.Anchored = true |
857 | - | local p = Instance.new("Part") |
857 | + | prt.CFrame = cframe |
858 | - | soundeffect("rbxassetid://397689338", 2, 1, p) |
858 | + | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
859 | - | p.Anchored = true |
859 | + | game:GetService("Debris"):AddItem(prt, 10) |
860 | - | p.CanCollide = false |
860 | + | if Type == 1 or Type == nil then |
861 | - | p.Material = "Neon" |
861 | + | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) |
862 | - | p.BrickColor = BrickColor.new("Deep orange") |
862 | + | |
863 | - | p.Size = Vector3.new(0.1,0.1,0.1) |
863 | + | if Type == 2 then |
864 | - | local face = surface == Enum.NormalId.Back and -tar.CFrame.lookVector or surface == Enum.NormalId.Front and tar.CFrame.lookVector or surface == Enum.NormalId.Left and -tar.CFrame.rightVector or surface == Enum.NormalId.Right and tar.CFrame.rightVector or surface == Enum.NormalId.Top and tar.CFrame.upVector or -tar.CFrame.upVector |
864 | + | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) |
865 | - | setshape(p, "Sphere") |
865 | + | |
866 | - | p.CFrame = CFrame.new(hit.p, hit.p+face) |
866 | + | |
867 | - | p.Parent = char |
867 | + | |
868 | - | for i = 1, 60*5 do |
868 | + | Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
869 | - | local cf = p.CFrame |
869 | + | |
870 | - | p.Size = p.Size:Lerp(Vector3.new(30,30,0.1), 0.01) |
870 | + | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) |
871 | - | p.CFrame = cf |
871 | + | prt.Anchored = true |
872 | - | p.Transparency = i/(60*5) |
872 | + | prt.CFrame = cframe |
873 | prt.Material = "Neon" | |
874 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
875 | - | p:Destroy() |
875 | + | game:GetService("Debris"):AddItem(prt, 10) |
876 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
877 | - | addattack(Enum.KeyCode.V, function() |
877 | + | |
878 | - | effectsallowed = not effectsallowed |
878 | + | for i = 0, 1, delay do |
879 | swait() | |
880 | Part.Transparency = i | |
881 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
882 | - | spawn(function() |
882 | + | |
883 | - | local num = 0 |
883 | + | Part.Parent = nil |
884 | - | repeat swait() |
884 | + | |
885 | - | local hit = mouse.Hit |
885 | + | ), prt, msh) |
886 | - | local tar = mouse.Target |
886 | + | |
887 | - | local surface = mouse.TargetSurface |
887 | + | |
888 | - | mouse.TargetFilter = nil |
888 | + | shoottraildd = function(mouse, partt, SpreadAmount) |
889 | - | if num%30 == 0 and hit and (hit.p-rootpart.Position).magnitude < 1000 and tar and effectsallowed then |
889 | + | |
890 | - | spawn(function() |
890 | + | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) |
891 | - | local p = Instance.new("Part") |
891 | + | local MainPos = partt.Position |
892 | - | p.Anchored = true |
892 | + | local MainPos2 = mouse.Hit.p + SpreadVectors |
893 | - | p.CanCollide = false |
893 | + | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) |
894 | - | p.Material = "Neon" |
894 | + | local speed = 15 |
895 | - | p.Size = Vector3.new(0.1,0.1,0.1) |
895 | + | local num = 20 |
896 | - | local face = surface == Enum.NormalId.Back and -tar.CFrame.lookVector or surface == Enum.NormalId.Front and tar.CFrame.lookVector or surface == Enum.NormalId.Left and -tar.CFrame.rightVector or surface == Enum.NormalId.Right and tar.CFrame.rightVector or surface == Enum.NormalId.Top and tar.CFrame.upVector or -tar.CFrame.upVector |
896 | + | coroutine.resume(coroutine.create(function() |
897 | - | p.CFrame = CFrame.new(hit.p, hit.p + face) |
897 | + | |
898 | - | p.Parent = char.Torso |
898 | + | repeat |
899 | - | setshape(p, "Sphere") |
899 | + | |
900 | - | for i = 1, 20 do |
900 | + | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) |
901 | - | local cf = p.CFrame |
901 | + | local mag = (MainPos - pos).magnitude |
902 | - | p.Size = p.Size:Lerp(Vector3.new(5,5,0.1), 0.3) |
902 | + | Laser(BrickColor.new("Bright red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.175, 0, -0.175, 0.15) |
903 | - | p.CFrame = cf |
903 | + | MainPos = MainPos + MouseLook.lookVector * speed |
904 | - | p.Transparency = i/20 |
904 | + | num = num - 1 |
905 | - | swait() |
905 | + | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) |
906 | if hit ~= nil then | |
907 | - | p:Destroy() |
907 | + | num = 0 |
908 | - | end) |
908 | + | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) |
909 | refpart.Anchored = true | |
910 | - | num = num + 1 |
910 | + | refpart.CFrame = CFrame.new(pos) |
911 | - | local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil |
911 | + | game:GetService("Debris"):AddItem(refpart, 2) |
912 | - | local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil |
912 | + | |
913 | - | local tvel = rootpart.Velocity |
913 | + | do |
914 | - | if not air then |
914 | + | if num <= 0 then |
915 | - | spawn(function() |
915 | + | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) |
916 | - | if num%5 == 0 and tweendone and effectsallowed then |
916 | + | refpart.Anchored = true |
917 | - | local offset = CFrame.new(math.random(-100,100),0,math.random(-100,100)) |
917 | + | refpart.CFrame = CFrame.new(pos) |
918 | - | local drop = Instance.new("Part") |
918 | + | if hit ~= nil then |
919 | - | drop.Anchored = true |
919 | + | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1) |
920 | - | drop.CanCollide = false |
920 | + | BlockEffect(BrickColor.new("Br. yellowish orange"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.05) |
921 | - | drop.Size = Vector3.new(0.5,0.5,0.5) |
921 | + | BlockEffect(BrickColor.new("Bright red"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.07) |
922 | - | drop.CFrame = rootpart.CFrame *CFrame.new(0,50,-2)*offset |
922 | + | MagniDamage(refpart, 15, 10, 15, 0, "Normal") |
923 | - | drop.Material = "Neon" |
923 | + | |
924 | - | drop.Parent = workspace |
924 | + | game:GetService("Debris"):AddItem(refpart, 0) |
925 | - | setshape(drop, "Sphere") |
925 | + | |
926 | - | local endcf = rootpart.CFrame *CFrame.new(0,-4,-2)*offset |
926 | + | |
927 | - | local cf2 = rootpart.CFrame *CFrame.new(0,-3,0)*offset |
927 | + | until num <= 0 |
928 | - | for i = 1, 60*1 do |
928 | + | |
929 | - | local cf = drop.CFrame |
929 | + | )) |
930 | - | drop.Size = drop.Size:Lerp(Vector3.new(0.5,1.3,0.5), 0.2) |
930 | + | |
931 | - | drop.CFrame = cf:Lerp(endcf, 0.1) |
931 | + | ----- |
932 | - | swait() |
932 | + | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
933 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
934 | - | --soundeffect("rbxassetid://397689338", 2, math.random(9,11)/10, char) |
934 | + | prt.Anchored = true |
935 | - | drop:Destroy() |
935 | + | prt.CFrame = cframe |
936 | - | local p = Instance.new("Part") |
936 | + | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
937 | - | p.Anchored = true |
937 | + | game:GetService("Debris"):AddItem(prt, 10) |
938 | - | p.CanCollide = false |
938 | + | table.insert(Effects, { |
939 | - | p.Material = "Neon" |
939 | + | prt, |
940 | - | p.Size = Vector3.new(0.1,0.1,0.1) |
940 | + | "Cylinder", |
941 | - | p.CFrame = cf2 |
941 | + | delay, |
942 | - | p.Parent = workspace |
942 | + | x3, |
943 | - | setshape(p, "Sphere") |
943 | + | y3, |
944 | - | for i = 1, 60*5 do |
944 | + | z3, |
945 | - | local cf = p.CFrame |
945 | + | msh |
946 | - | p.Size = p.Size:Lerp(Vector3.new(5,0.1,5), 0.01) |
946 | + | }) |
947 | - | p.CFrame = cf |
947 | + | |
948 | - | p.Transparency = i/(60*5) |
948 | + | ----- |
949 | - | swait() |
949 | + | function AppearDisappear() |
950 | local ez = Instance.new("Part",char) | |
951 | - | p:Destroy() |
951 | + | ez.Size = Vector3.new(1,1,1) |
952 | ez.Name = "a" | |
953 | - | end) |
953 | + | ez:BreakJoints() |
954 | ez.Anchored = false | |
955 | - | local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil |
955 | + | ez.Transparency = 0 |
956 | - | local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil |
956 | + | ez.CanCollide = false |
957 | - | local tvel = rootpart.Velocity |
957 | + | ez.Shape = "Block" |
958 | - | if air and tvel.Y > 0 then |
958 | + | ez.Material='Neon' |
959 | - | animpose = "Jump" |
959 | + | ez.TopSurface = "SmoothNoOutlines" |
960 | ez.BottomSurface = "SmoothNoOutlines" | |
961 | - | if air and tvel.Y < 0 then |
961 | + | ez.BrickColor = BrickColor.new("White") |
962 | - | animpose = "Fall" |
962 | + | ddd = Instance.new("SpecialMesh",ez) |
963 | ddd.MeshType="Sphere" | |
964 | - | if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then |
964 | + | ddd.Scale=Vector3.new(6,6,6) |
965 | - | animpose = "Walking" |
965 | + | Weld = Instance.new("Weld",ez) |
966 | Weld.Part0 = Weld.Parent | |
967 | - | if not air and animpose == "Walking" and movespeed > 16 then |
967 | + | Weld.Part1 = char.Torso |
968 | - | animpose = "Walking"--or Running |
968 | + | for a = 0, 1, .05 do |
969 | ddd.Scale = ddd.Scale + Vector3.new(.5, .5, .5) | |
970 | - | if not air and movespeed == 0 then |
970 | + | ez.Transparency = ez.Transparency + .1 |
971 | - | animpose = "Idle" |
971 | + | wait() |
972 | end | |
973 | - | until not settings.CustomAnim |
973 | + | ez:Remove() |
974 | end | |
975 | - | local change = 1 |
975 | + | function AppearDisappear1() |
976 | - | local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new |
976 | + | Das.Transparency = 0 |
977 | - | while swait() and settings.CustomAnim do |
977 | + | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=582878615" |
978 | - | local num = tick()*change |
978 | + | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=468148440" |
979 | - | ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0.050000000745058 + 0.25, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + -40), math.rad(cos(num * 1 + -1) * -3 + -10), math.rad(cos(num * 1 + 0) * 0 + 190)), 0.35) |
979 | + | CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, 1) |
980 | - | |
980 | + | |
981 | - | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + -2.4010000228882, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 85), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35) |
981 | + | function AppearDisappear2() |
982 | - | |
982 | + | Das.Transparency = 0 |
983 | - | lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + -5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35) |
983 | + | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=582878615" |
984 | - | |
984 | + | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=330970993" |
985 | - | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 2 + -10), math.rad(cos(num * 1 + 0) * 0 + -5), math.rad(cos(num * 1 + 0) * 0 + 20)), 0.35) |
985 | + | CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, .8) |
986 | - | |
986 | + | |
987 | - | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35) |
987 | + | function equip() |
988 | - | |
988 | + | Handle.Transparency = 0 |
989 | - | rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0.050000000745058 + 0.25, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + -40), math.rad(cos(num * 1 + -1) * 3 + -10), math.rad(cos(num * 1 + 0) * 0 + -200)), 0.35) |
989 | + | local ez = Instance.new("Part",char) |
990 | ez.Size = Vector3.new(1,1,1) | |
991 | ez.Name = "a" | |
992 | ez:BreakJoints() | |
993 | ez.Anchored = false | |
994 | ez.Transparency = 0 | |
995 | ez.CanCollide = false | |
996 | ez.Shape = "Block" | |
997 | ez.Material='Neon' | |
998 | ez.TopSurface = "SmoothNoOutlines" | |
999 | ez.BottomSurface = "SmoothNoOutlines" | |
1000 | ez.BrickColor = BrickColor.new("New Yeller") | |
1001 | ddd = Instance.new("SpecialMesh",ez) | |
1002 | ddd.MeshType="Sphere" | |
1003 | ddd.Scale=Vector3.new(1,1,1) | |
1004 | Weld = Instance.new("Weld",ez) | |
1005 | Weld.Part0 = Weld.Parent | |
1006 | Weld.Part1 = Handle | |
1007 | CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, 1) | |
1008 | for a = 0, 1, .05 do--while wait() and ez and ez.Transparency <= 1 do | |
1009 | ddd.Scale = ddd.Scale + Vector3.new(1, 1, 1) | |
1010 | ez.Transparency = ez.Transparency + .1 | |
1011 | wait() | |
1012 | end | |
1013 | ez:Remove() | |
1014 | end | |
1015 | function unequip() | |
1016 | Handle.Transparency = 1 | |
1017 | local ez = Instance.new("Part",char) | |
1018 | ez.Size = Vector3.new(1,1,1) | |
1019 | ez.Name = "a" | |
1020 | ez:BreakJoints() | |
1021 | ez.Anchored = false | |
1022 | ez.Transparency = 0 | |
1023 | ez.CanCollide = false | |
1024 | ez.Shape = "Block" | |
1025 | ez.Material='Neon' | |
1026 | ez.TopSurface = "SmoothNoOutlines" | |
1027 | ez.BottomSurface = "SmoothNoOutlines" | |
1028 | ez.BrickColor = BrickColor.new("New Yeller") | |
1029 | ddd = Instance.new("SpecialMesh",ez) | |
1030 | ddd.MeshType="Sphere" | |
1031 | ddd.Scale=Vector3.new(1,1,1) | |
1032 | Weld = Instance.new("Weld",ez) | |
1033 | Weld.Part0 = Weld.Parent | |
1034 | Weld.Part1 = Handle | |
1035 | CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, .8) | |
1036 | for a = 0, 1, .05 do | |
1037 | ddd.Scale = ddd.Scale + Vector3.new(1, 1, 1) | |
1038 | ez.Transparency = ez.Transparency + .1 | |
1039 | wait() | |
1040 | end | |
1041 | ez:Remove() | |
1042 | end | |
1043 | attack1 = function() | |
1044 | attack = true | |
1045 | local con = Hitbox.Touched:connect(function(hit) | |
1046 | ||
1047 | Damagefunc(Hitbox, hit, 10, 30, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
1048 | end | |
1049 | ) | |
1050 | for i = 0, 1, 0.1 do | |
1051 | swait() | |
1052 | --PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.529917479, 0, -0.848049283, 0, 1, 0, 0.848049283, 0, 0.529917479), CFrame.new(0, 1.49999499, 0, 0.406736165, 0, 0.913545728, 0, 1, 0, -0.913545728, 0, 0.406736165), CFrame.new(1.35679102, 0.782658279, 0.0675592273, 0.707045317, -0.527684033, 0.470782787, 0.133834034, -0.553849995, -0.82178998, 0.694388449, 0.644049466, -0.320975006), CFrame.new(-1.69279337, 0.499999672, -0.79492861, 0.717408359, 0.691137791, 0.0874861553, -0.0527720191, 0.179133937, -0.982408345, -0.694651246, 0.700171173, 0.164984912), CFrame.new(0.641659617, -1.99999392, 0.125842437, 0.882947862, 0, -0.469471127, 0, 1, 0, 0.469471127, 0, 0.882947862), CFrame.new(-0.348587006, -1.99999392, -0.0133331716, 0.898793101, 0, 0.438373119, 0, 1, 0, -0.438373119, 0, 0.898793101)}, 0.3, false) | |
1053 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3) | |
1054 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1055 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 1.6, -.6) * angles(math.rad(160), math.rad(0), math.rad(0)), 0.3) | |
1056 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1057 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1058 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1059 | ||
1060 | end | |
1061 | CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", char.Torso, 1, 1.5) | |
1062 | for i = 0, 1, 0.1 do | |
1063 | swait() | |
1064 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3) | |
1065 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1066 | RW.C0 = clerp(RW.C0, CFrame.new(.9, -.1, -.8) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3) | |
1067 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1068 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1069 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1070 | ||
1071 | ||
1072 | --PlayAnimationFromTable({CFrame.new(0.180807382, 0, 0.0999719128, 0.342022538, 0, 0.939691782, 0, 1, 0, -0.939691782, 0, 0.342022538), CFrame.new(0.0106580649, 1.49999499, -0.0643079877, 0.469472408, 0, -0.882947266, 0, 1, 0, 0.882947266, 0, 0.469472408), CFrame.new(1.83224225, 0.376015127, 0.0757035911, 0.135973215, -0.988979697, 0.0585707389, 0.0630049929, -0.0503679588, -0.996741474, 0.988707185, 0.139220387, 0.0554619655), CFrame.new(-0.541033506, 0.699999869, -0.891753554, 0.658596575, -0.726630569, 0.195598423, 0.0759940296, -0.194378868, -0.977978408, 0.74864924, 0.658957481, -0.072797671), CFrame.new(0.641663194, -1.99999392, 0.125834763, 0.406737477, 0, -0.913545191, 0, 1, 0, 0.913545191, 0, 0.406737477), CFrame.new(-0.590457141, -1.99999392, 0.164175183, 0.984808207, 0, -0.173646241, 0, 1, 0, 0.173646241, 0, 0.984808207)}, 0.3, false) | |
1073 | --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(60), math.rad(0), math.rad(-90)), 0.3) | |
1074 | end | |
1075 | con:disconnect() | |
1076 | attack = false | |
1077 | end | |
1078 | attack2 = function() | |
1079 | attack = true | |
1080 | local con = Hitbox.Touched:connect(function(hit) | |
1081 | ||
1082 | Damagefunc(Hitbox, hit, 10, 30, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
1083 | end | |
1084 | ) | |
1085 | for i = 0, 1, 0.1 do | |
1086 | swait() | |
1087 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1088 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3) | |
1089 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1090 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, .75, -1) * angles(math.rad(110), -math.rad(80), math.rad(15)), 0.3) | |
1091 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1092 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1093 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1094 | --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(60), math.rad(0), math.rad(-90)), 0.3) | |
1095 | end | |
1096 | CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", char.Torso, 1, 2) | |
1097 | for i = 0, 1, 0.1 do | |
1098 | swait() | |
1099 | --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false) | |
1100 | --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(60), math.rad(0), math.rad(-90)), 0.3) | |
1101 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3) | |
1102 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1103 | RW.C0 = clerp(RW.C0, CFrame.new(.3, .3, -.3) * angles(math.rad(40), math.rad(30), -math.rad(70)), 0.3) | |
1104 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1105 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1106 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1107 | ||
1108 | end | |
1109 | con:disconnect() | |
1110 | attack = false | |
1111 | end | |
1112 | attack3 = function() | |
1113 | attack = true | |
1114 | local con = Hitbox.Touched:connect(function(hit) | |
1115 | ||
1116 | Damagefunc(Hitbox, hit, 10, 30, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
1117 | end) | |
1118 | ||
1119 | for i = 0, 1, 0.1 do | |
1120 | swait() | |
1121 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1122 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.3) | |
1123 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1124 | RW.C0 = clerp(RW.C0, CFrame.new(.35, .5, -.7) * angles(math.rad(205), math.rad(20), -math.rad(110)), 0.3) | |
1125 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1126 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1127 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1128 | end | |
1129 | CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", char.Torso, 1, 2) | |
1130 | for i = 0, .2, 0.1 do | |
1131 | swait() | |
1132 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1133 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3) | |
1134 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(90), math.rad(0)), 0.3) | |
1135 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1136 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, .55, -1) * angles(math.rad(90), math.rad(100), math.rad(0)), 0.3) | |
1137 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1138 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1139 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1140 | end | |
1141 | for i = 0, .2, 0.1 do | |
1142 | swait() | |
1143 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1144 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(180), math.rad(0)), 0.3) | |
1145 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1146 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, .55, -1) * angles(math.rad(90), math.rad(100), math.rad(0)), 0.3) | |
1147 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1148 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1149 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1150 | end | |
1151 | for i = 0, .2, 0.1 do | |
1152 | swait() | |
1153 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1154 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(270), math.rad(0)), 0.3) | |
1155 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1156 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, .55, -1) * angles(math.rad(90), math.rad(100), math.rad(0)), 0.3) | |
1157 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1158 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1159 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1160 | end | |
1161 | ||
1162 | ||
1163 | ||
1164 | ||
1165 | for i = 0, 1, 0.1 do | |
1166 | swait() | |
1167 | --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false) | |
1168 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3) | |
1169 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(40), math.rad(0)), 0.3) | |
1170 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1171 | RW.C0 = clerp(RW.C0, CFrame.new(2, .5, 0) * angles(-math.rad(180), math.rad(0), math.rad(90)), 0.3) | |
1172 | LW.C0 = clerp(LW.C0, CFrame.new(-2, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3) | |
1173 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1174 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1175 | end | |
1176 | ||
1177 | con:disconnect() | |
1178 | attack = false | |
1179 | end | |
1180 | function kek1() | |
1181 | attack = true | |
1182 | Effects.Sphere.Create(BrickColor.new("New Yeller"), FakeHandle.CFrame * angles(math.random(-3,3), math.random(-3,3), math.random(-3,3)), 6.5, 6.5, 6.5, 4, 4, 4, 0.07) | |
1183 | ||
1184 | CFuncs.Sound.Create("http://www.roblox.com/asset?id=200633707", char.Torso, 0.8, 1.1) | |
1185 | ||
1186 | local Aaaa = Instance.new("Part", RootPart) | |
1187 | Aaaa.Size = Vector3.new(.1, .1, .1) | |
1188 | Aaaa.BrickColor = BrickColor.new("White") | |
1189 | Aaaa.Transparency = 1 | |
1190 | Aaaa.CanCollide = false | |
1191 | local abbWeld = Instance.new("Weld", RootPart) | |
1192 | abbWeld.Part0 = RootPart | |
1193 | abbWeld.Part1 = Aaaa | |
1194 | abbWeld.C1 = CFrame.new(0,0,9) | |
1195 | ||
1196 | for i = 0, 2.5, 0.1 do | |
1197 | swait() | |
1198 | Effects.Ring.Create(BrickColor.new("Navy blue"), FakeHandle.CFrame * angles(math.random(-3,3), math.random(-3,3), math.random(-3,3)), 1.5, 1.5, 0, 0.5, 0.5, 0, 0.07) | |
1199 | --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false) | |
1200 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(45), math.rad(0)), 0.1) | |
1201 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1202 | RW.C0 = clerp(RW.C0, CFrame.new(.35, .5, -.7) * angles(math.rad(205), math.rad(20), -math.rad(110)), 0.1) | |
1203 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.1) | |
1204 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1205 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1206 | ||
1207 | end | |
1208 | for i = 0, 0.2, 0.1 do | |
1209 | swait() | |
1210 | --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false) | |
1211 | --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3) | |
1212 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3) | |
1213 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3) | |
1214 | RW.C0 = clerp(RW.C0, CFrame.new(2, .5, 0) * angles(math.rad(0), math.rad(0), -math.rad(5)), 0.3) | |
1215 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1216 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1217 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1218 | end | |
1219 | Effects.Sphere.Create(BrickColor.new("Navy blue"), Aaaa.CFrame * angles(math.random(-3,3), math.random(-3,3), math.random(-3,3)), 2.5, 2.5, 2.5, 3.5, 3.5, 3.5, 0.07) | |
1220 | Effects.Ring.Create(BrickColor.new("Navy blue"), Aaaa.CFrame * angles(0, 0, math.random(-3,3)), 2.5, 2.5, 2.5, 1, 1, 1, 0.07) | |
1221 | ||
1222 | CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", Aaaa, 1, 1) | |
1223 | CFuncs.Sound.Create("http://roblox.com/asset/?id=279675650", FakeHandle, 1, 1.1) | |
1224 | local con = Aaaa.Touched:connect(function(hit) | |
1225 | MagniDamage(Aaaa, 30, 30, 55, 4, "Knockdown") | |
1226 | --Damagefunc(Hitbox, hit, 30, 60, math.random(1, 5), "Knockdown", RootPart, 0.2, "rbxassetid://199149221", 0.8) | |
1227 | end | |
1228 | ) | |
1229 | for i = 0, 1, 0.1 do | |
1230 | swait() | |
1231 | --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false) | |
1232 | --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3) | |
1233 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3) | |
1234 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3) | |
1235 | RW.C0 = clerp(RW.C0, CFrame.new(2, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
1236 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3) | |
1237 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1238 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1239 | end | |
1240 | Aaaa:Remove() | |
1241 | con:disconnect() | |
1242 | attack = false | |
1243 | end | |
1244 | function kek2() | |
1245 | attack = true | |
1246 | ||
1247 | ||
1248 | for i = 0, 1, 0.1 do | |
1249 | swait() | |
1250 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1251 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.3) | |
1252 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1253 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 1, 0) * angles(math.rad(179), math.rad(0), math.rad(0)), 0.3) | |
1254 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1255 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1256 | end | |
1257 | CFuncs.Sound.Create("rbxassetid://169380505", RootPart, 0.8, 1.5) | |
1258 | Effects.Cylinder.Create(BrickColor.new("New Yeller"), LeftArm.CFrame * angles(math.rad(2), 0, 0), 1, 9999, 1, 1, 1, 1, 0.07) | |
1259 | for i = 0, 2, 0.1 do | |
1260 | swait() | |
1261 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1262 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.3) | |
1263 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1264 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 1, 0) * angles(math.rad(179), math.rad(0), math.rad(0)), 0.3) | |
1265 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1266 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1267 | end | |
1268 | CFuncs.Sound.Create("rbxassetid://169445602", RootPart, 1, 1.2) | |
1269 | local cf2 = mouse.Hit.p + Vector3.new(math.random(-100, 100) / 50, 50, math.random(-100, 100) / 50) | |
1270 | local hit2, pos2 = rayCast(cf2, CFrame.new(cf2, cf2 - Vector3.new(0, 1, 0)).lookVector, 999, char) | |
1271 | if hit2 ~= nil then | |
1272 | local d1 = CFuncs.Part.Create(workspace, "Neon", 0, 0.5, BrickColor.new("Navy blue"), "Effect", Vector3.new()) | |
1273 | d1.Anchored = true | |
1274 | d1.CFrame = CFrame.new(pos2) | |
1275 | MagniDamage(d1, 20, 10, 25, 5, "Snare") | |
1276 | Effects.Cylinder.Create(BrickColor.new("New Yeller"), d1.CFrame * angles(0, 0, 0), 1, 9999, 1, 4, 1, 4, 0.07) | |
1277 | local con = Hitbox.Touched:connect(function(hit) | |
1278 | end) | |
1279 | game:GetService("Debris"):AddItem(d1, 5) | |
1280 | local msh = CFuncs.Mesh.Create("CylinderMesh", d1, "nil", "nil", Vector3.new(0, 0, 0), Vector3.new(100, 5, 100)) | |
1281 | local d2 = d1:Clone() | |
1282 | d2.Parent = d1 | |
1283 | d2.CFrame = CFrame.new(d1.Position) | |
1284 | d2.BrickColor = BrickColor.new("New Yeller") | |
1285 | d2.Mesh.Scale = Vector3.new(0, 5, 0) | |
1286 | table.insert(Effects, {d1, "QuadShot", d2, d2.Mesh, 0}) | |
1287 | end | |
1288 | attack = false | |
1289 | ||
1290 | end | |
1291 | function kek3() | |
1292 | cooldown1 = cooldown1 - 5 | |
1293 | local dacf = Handle.CFrame * angles(-1.57 + math.random(40, 80) / 100, 0, math.random(-80, 80) / 100) | |
1294 | local icepart1 = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Cyan"), "Ice", vt()) | |
1295 | icepart1.Anchored = true | |
1296 | i1msh = CreateMesh("SpecialMesh", icepart1, "Sphere", "", vt(0, 0, 0), vt(5, 5, 5)) | |
1297 | icepart1.CFrame = dacf | |
1298 | for i = 0, 1, 0.1 do | |
1299 | swait() | |
1300 | icepart1.CFrame = dacf | |
1301 | end | |
1302 | local cfinc = 99999 | |
1303 | icepart1.Transparency = 1 | |
1304 | CreateSound("rbxassetid://334325056", icepart1, 1, 1) | |
1305 | game:GetService("Debris"):AddItem(icepart1, 1) | |
1306 | local spread = vt((math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16) * (icepart1.Position - (icepart1.Position + vt(0, -1, 0))).magnitude / 100 | |
1307 | local TheHit = mouse.Hit.p | |
1308 | local MouseLook = cf((icepart1.Position + TheHit) / 2, TheHit + spread) | |
1309 | local hit, pos = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character) | |
1310 | local target1, distance1 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character) | |
1311 | local test1, dist1 = mouse.Hit.p, nil | |
1312 | if target1 ~= nil then | |
1313 | cfda = target1.Position + vt(math.random(-3000, 3000) / 100, 20, math.random(-3000, 3000) / 100) | |
1314 | local hit2, pos2 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character) | |
1315 | local d1 = CreatePart(effect, "SmoothPlastic", 0, 0.5, BrickColor.new("White"), "Effect", vt()) | |
1316 | d1.Anchored = true | |
1317 | d1.CFrame = cf(pos2) | |
1318 | MagniDamage(d1, 10, 12, 15, -10, "Normal", "231917784") | |
1319 | SphereEffect(BrickColor.new("White"), cf(pos2), 100, 100, 100, 10, 10, 10, 0.07) | |
1320 | msh = CreateMesh("SpecialMesh", d1, "Sphere", "", vt(0, 0, 0), vt(80, 80, 80)) | |
1321 | d2 = d1:Clone() | |
1322 | d2.Parent = d1 | |
1323 | d2.CFrame = cf(d1.Position) | |
1324 | d2.BrickColor = BrickColor.new("Toothpaste") | |
1325 | d2.Mesh.Scale = vt(0, 5, 0) | |
1326 | table.insert(Effects, { | |
1327 | d1, | |
1328 | "SatelliteStrike", | |
1329 | d2, | |
1330 | d2.Mesh, | |
1331 | 0 | |
1332 | }) | |
1333 | end | |
1334 | end | |
1335 | ||
1336 | function kek4() | |
1337 | ||
1338 | end | |
1339 | mouse.Button1Down:connect(function() | |
1340 | ||
1341 | if attack == false and attacktype == 1 and equipped == true then | |
1342 | attacktype = 2 | |
1343 | attack1() | |
1344 | else | |
1345 | if attack == false and attacktype == 2 and equipped == true then | |
1346 | attacktype = 3 | |
1347 | attack2() | |
1348 | else | |
1349 | if attack == false and attacktype == 3 and equipped == true then | |
1350 | attacktype = 1 | |
1351 | attack3() | |
1352 | end | |
1353 | end | |
1354 | end | |
1355 | end | |
1356 | ) | |
1357 | ||
1358 | updateskills = function() | |
1359 | ||
1360 | if cooldown1 <= co1 then | |
1361 | cooldown1 = cooldown1 + 0.033333333333333 | |
1362 | end | |
1363 | if cooldown2 <= co2 then | |
1364 | cooldown2 = cooldown2 + 0.033333333333333 | |
1365 | end | |
1366 | if cooldown3 <= co3 then | |
1367 | cooldown3 = cooldown3 + 0.033333333333333 | |
1368 | end | |
1369 | if cooldown4 <= co4 then | |
1370 | cooldown4 = cooldown4 + 0.033333333333333 | |
1371 | end | |
1372 | end | |
1373 | ||
1374 | --[[function onKeyDown(key) | |
1375 | if key == "u" then | |
1376 | if nak == false and disable == false then | |
1377 | disable = true | |
1378 | AppearDisappear1() | |
1379 | AppearDisappear() | |
1380 | nak = true | |
1381 | wait(1) | |
1382 | disable = false | |
1383 | elseif disable == false then | |
1384 | AppearDisappear2() | |
1385 | AppearDisappear() | |
1386 | ||
1387 | nak = false | |
1388 | wait(1) | |
1389 | disable = false | |
1390 | end | |
1391 | end | |
1392 | ||
1393 | if key == "f" then | |
1394 | if equipped == false and disable == false then | |
1395 | disable = true | |
1396 | equipped = true | |
1397 | equip() | |
1398 | wait(1) | |
1399 | disable = false | |
1400 | elseif equipped == true and disable == false then | |
1401 | disable = true | |
1402 | unequip() | |
1403 | equipped = false | |
1404 | wait(1) | |
1405 | disable = false | |
1406 | end | |
1407 | end]] | |
1408 | mouse.KeyDown:connect(function(k) | |
1409 | ||
1410 | k = k:lower() | |
1411 | if attack == false and equipped == true and k == "z" and co1 <= cooldown1 then | |
1412 | cooldown1 = 0 | |
1413 | kek1() | |
1414 | else | |
1415 | if attack == false and equipped == true and k == "x" and co2 <= cooldown2 then | |
1416 | cooldown2 = 0 | |
1417 | kek2() | |
1418 | else | |
1419 | if attack == false and equipped == true and k == "c" and co3 <= cooldown3 then | |
1420 | cooldown3 = 0 | |
1421 | kek3() | |
1422 | else | |
1423 | if attack == false and k == "v" and co4 <= cooldown4 then | |
1424 | cooldown4 = 0 | |
1425 | kek4() | |
1426 | else | |
1427 | if attack == false and k == "f" and equipped == false and disable == false then | |
1428 | ||
1429 | disable = true | |
1430 | equipped = true | |
1431 | equip() | |
1432 | wait(.5) | |
1433 | disable = false | |
1434 | else | |
1435 | if k == "f" and equipped == true and disable == false then | |
1436 | disable = true | |
1437 | equipped = false | |
1438 | unequip() | |
1439 | wait(.5) | |
1440 | disable = false | |
1441 | ||
1442 | ||
1443 | else | |
1444 | if k == "u" and nak == false and disable == false then | |
1445 | disable = true | |
1446 | AppearDisappear1() | |
1447 | AppearDisappear() | |
1448 | nak = true | |
1449 | wait(.5) | |
1450 | disable = false | |
1451 | else | |
1452 | if k == "u" and nak == true and disable == false then | |
1453 | disable = true | |
1454 | AppearDisappear2() | |
1455 | AppearDisappear() | |
1456 | nak = false | |
1457 | wait(.5) | |
1458 | disable = false | |
1459 | end | |
1460 | end | |
1461 | end | |
1462 | end | |
1463 | end | |
1464 | end | |
1465 | end | |
1466 | end | |
1467 | end) | |
1468 | ||
1469 | while 1 do | |
1470 | swait() | |
1471 | updateskills() | |
1472 | bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5) | |
1473 | bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5) | |
1474 | bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5) | |
1475 | bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5) | |
1476 | for i,v in pairs(char:GetChildren()) do | |
1477 | if v:IsA("Part") then | |
1478 | v.Material = "SmoothPlastic" | |
1479 | else | |
1480 | if v:IsA("Hat") then | |
1481 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1482 | end | |
1483 | end | |
1484 | end | |
1485 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1486 | velocity = RootPart.Velocity.y | |
1487 | sine = sine + change | |
1488 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, char) | |
1489 | if equipped == true or equipped == false then | |
1490 | if 1 < RootPart.Velocity.y and hit == nil then | |
1491 | Anim = "Jump" | |
1492 | if attack == false then | |
1493 | manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(65),-math.rad(90)), 0.3) | |
1494 | manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.3,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3) | |
1495 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3) | |
1496 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1497 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3) | |
1498 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3) | |
1499 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3) | |
1500 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0.35) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.3) | |
1501 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0.35) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.3) | |
1502 | end | |
1503 | else | |
1504 | if RootPart.Velocity.y < -1 and hit == nil then | |
1505 | Anim = "Fall" | |
1506 | if attack == false then | |
1507 | manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(15),-math.rad(90)), 0.3) | |
1508 | manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3) | |
1509 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3) | |
1510 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1511 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3) | |
1512 | RW.C0 = clerp(RW.C0, CFrame.new(1.7, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3) | |
1513 | LW.C0 = clerp(LW.C0, CFrame.new(-1.7, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3) | |
1514 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0.5) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.3) | |
1515 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0.5) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.3) | |
1516 | end | |
1517 | else | |
1518 | if Torsovelocity < 1 and hit ~= nil then | |
1519 | Anim = "Idle" | |
1520 | if attack == false then | |
1521 | if equipped == true then | |
1522 | change = 1 | |
1523 | manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90 - 15 * math.cos((sine) / 45)),math.rad(40),-math.rad(90)), 0.3) | |
1524 | manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.4,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3) | |
1525 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3) | |
1526 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0 - 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), -math.rad(20), math.rad(0)), 0.3) | |
1527 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(5), math.rad(20), math.rad(0)), 0.3) | |
1528 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1529 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1530 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1531 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1532 | else | |
1533 | change = 1 | |
1534 | manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90 - 15 * math.cos((sine) / 45)),math.rad(40),-math.rad(90)), 0.3) | |
1535 | manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.4,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3) | |
1536 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3) | |
1537 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0 - 0.06 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1538 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1539 | RW.C0 = clerp(RW.C0, CFrame.new(0.7, 0.1, -0.45) * angles(math.rad(20), math.rad(0), -math.rad(40)), 0.3) | |
1540 | LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.1, -0.45) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.3) | |
1541 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1542 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1543 | ||
1544 | end | |
1545 | end | |
1546 | else | |
1547 | if 2 < Torsovelocity and hit ~= nil then | |
1548 | Anim = "Walk" | |
1549 | if attack == false then | |
1550 | manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(40),-math.rad(90)), 0.3) | |
1551 | manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.4,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3) | |
1552 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3) | |
1553 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3) | |
1554 | char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3) | |
1555 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1556 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1557 | RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0 + 1 * math.cos((sine) / 3)) * angles(math.rad(0 - 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3) | |
1558 | LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0 - 1 * math.cos((sine) / 3)) * angles(math.rad(0 + 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3) | |
1559 | end | |
1560 | end | |
1561 | end | |
1562 | end | |
1563 | end | |
1564 | end | |
1565 | if 0 < #Effects then | |
1566 | for e = 1, #Effects do | |
1567 | if Effects[e] ~= nil then | |
1568 | local Thing = Effects[e] | |
1569 | if Thing ~= nil then | |
1570 | local Part = Thing[1] | |
1571 | local Mode = Thing[2] | |
1572 | local Delay = Thing[3] | |
1573 | local IncX = Thing[4] | |
1574 | local IncY = Thing[5] | |
1575 | local IncZ = Thing[6] | |
1576 | if Thing[1].Transparency <= 1 then | |
1577 | if Thing[2] == "Block1" then | |
1578 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1579 | Mesh = Thing[1].Mesh | |
1580 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1581 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1582 | else | |
1583 | if Thing[2] == "Block2" then | |
1584 | Thing[1].CFrame = Thing[1].CFrame | |
1585 | Mesh = Thing[7] | |
1586 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1587 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1588 | else | |
1589 | if Thing[2] == "Cylinder" then | |
1590 | Mesh = Thing[1].Mesh | |
1591 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1592 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1593 | else | |
1594 | if Thing[2] == "Blood" then | |
1595 | Mesh = Thing[7] | |
1596 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1597 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1598 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1599 | else | |
1600 | if Thing[2] == "Elec" then | |
1601 | Mesh = Thing[1].Mesh | |
1602 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1603 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1604 | else | |
1605 | if Thing[2] == "Disappear" then | |
1606 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1607 | else | |
1608 | if Thing[2] == "Shatter" then | |
1609 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1610 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1611 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1612 | Thing[6] = Thing[6] + Thing[5] | |
1613 | else | |
1614 | if Thing[2] == "QuadShot" then | |
1615 | if Thing[5] < 100 then | |
1616 | Thing[5] = Thing[5] + 2.5 | |
1617 | Thing[4].Scale = Vector3.new(Thing[5], 5, Thing[5]) | |
1618 | else | |
1619 | refda = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new()) | |
1620 | refda.Anchored = true | |
1621 | refda.CFrame = CFrame.new(Thing[1].Position) | |
1622 | game:GetService("Debris"):AddItem(refda, 5) | |
1623 | CFuncs.Sound.Create("rbxassetid://203691378", refda, 1, 1.2) | |
1624 | CFuncs.Sound.Create("rbxassetid://184718741", refda, 1, 0.8) | |
1625 | --MagniDamage(refda, 40, 20, 50, BrickColor.new("Navy blue"), BrickColor.new("New Yeller")) | |
1626 | MagniDamage(refda, 40, 20, 50, 50, "Freeze") | |
1627 | Effects.Sphere.Create(BrickColor.new("New Yeller"), CFrame.new(refda.Position), 3, 3, 3, 10, 10, 10, 0.05) | |
1628 | Effects.Sphere.Create(BrickColor.new("Navy blue"), CFrame.new(refda.Position), 15, 15, 15, 10, 10, 10, 0.05) | |
1629 | --Effects.Sphere.Create(BrickColor.new("New Yeller"), refda.CFrame, 10, 10, 10, 10, 10, 10, 0.06) | |
1630 | Effects.Block.Create(BrickColor.new("New Yeller"), refda.CFrame, 10, 10, 10, 10, 10, 10, 0.06, 1) | |
1631 | Effects.Wave.Create(BrickColor.new("New Yeller"), refda.CFrame, 1, 1, 1, 3, 3, 3, 0.06) | |
1632 | Thing[1].Parent = nil | |
1633 | table.remove(Effects, e) | |
1634 | end | |
1635 | end | |
1636 | end | |
1637 | end | |
1638 | end | |
1639 | end | |
1640 | end | |
1641 | end | |
1642 | end | |
1643 | else | |
1644 | Part.Parent = nil | |
1645 | table.remove(Effects, e) | |
1646 | end | |
1647 | end | |
1648 | end | |
1649 | end | |
1650 | end | |
1651 | end |