SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[SCRIPT NAME]]-- | |
| 2 | --[[ | |
| 3 | ||
| 4 | Move List | |
| 5 | ||
| 6 | edit by BonnieKunG1s | |
| 7 | --]] | |
| 8 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 9 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 10 | local Player,game,owner = owner,game | |
| 11 | local RealPlayer = Player | |
| 12 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
| |
| 13 | ||
| 14 | warn'Edit By BonnieKunG1s' | |
| 15 | local hes = game.Players.LocalPlayer.Character.Humanoid | |
| 16 | hes.MaxHealth = math.huge | |
| 17 | local plr = game.Players.LocalPlayer | |
| 18 | local char = plr.Character | |
| 19 | local mouse = plr:GetMouse() | |
| 20 | local torso = char.Torso | |
| 21 | local rs = torso["Right Shoulder"] | |
| 22 | local ls = torso["Left Shoulder"] | |
| 23 | local rh = torso["Right Hip"] | |
| 24 | local lh = torso["Left Hip"] | |
| 25 | local rj = char.HumanoidRootPart.RootJoint | |
| 26 | local neck = torso.Neck | |
| 27 | local animpose = "Idle" | |
| 28 | local attacking = false | |
| 29 | local cananim = true | |
| 30 | local rage = false | |
| 31 | local shield = nil | |
| 32 | local sprint = false | |
| 33 | local canrage = true | |
| 34 | local legs = false | |
| 35 | local trail = false | |
| 36 | local powers = false | |
| 37 | local bc = char:WaitForChild("Body Colors")
| |
| 38 | local multiplier = 1 | |
| 39 | local lac = char["Body Colors"].LeftArmColor | |
| 40 | local rac = char["Body Colors"].RightArmColor | |
| 41 | local rlc = char["Body Colors"].RightArmColor | |
| 42 | local llc = char["Body Colors"].LeftLegColor | |
| 43 | local hc = char["Body Colors"].HeadColor | |
| 44 | local tc = char["Body Colors"].TorsoColor | |
| 45 | local humanoid = char:FindFirstChildOfClass("Humanoid")
| |
| 46 | local huge = Vector3.new(math.huge,math.huge,math.huge) | |
| 47 | local mobs = Instance.new("Sound", char)
| |
| 48 | mobs.SoundId = "rbxassetid://649630245" | |
| 49 | mobs.Looped = true | |
| 50 | mobs.Volume = 3 | |
| 51 | mobs:Play() | |
| 52 | if char:FindFirstChild("Animate") then char.Animate:Destroy() end
| |
| 53 | if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then char:FindFirstChildOfClass("Humanoid").Animator:Destroy() end
| |
| 54 | function legsonly() | |
| 55 | spawn(function() | |
| 56 | for i = 0, 10 do | |
| 57 | wait(0.001) | |
| 58 | if attacking then break end | |
| 59 | end | |
| 60 | if not attacking then | |
| 61 | legs = false | |
| 62 | end | |
| 63 | end) | |
| 64 | end | |
| 65 | function swait(t) | |
| 66 | if t == nil or t == 0 then | |
| 67 | game:service('RunService').Stepped:wait(0)
| |
| 68 | return true | |
| 69 | else | |
| 70 | for i = 0, t do | |
| 71 | game:service('RunService').Stepped:wait(0)
| |
| 72 | end | |
| 73 | return true | |
| 74 | end | |
| 75 | end | |
| 76 | function hurt(hit, dmg) | |
| 77 | if hit.Parent then | |
| 78 | if hit.Parent:IsA("LocalScript") then hit.Parent:Destroy() end
| |
| 79 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 80 | if hum then | |
| 81 | if hum.Parent.Name ~= plr.Name then | |
| 82 | if dmg == "Kill" or hum.Health > 100000 then | |
| 83 | hit.Parent:BreakJoints() | |
| 84 | return true | |
| 85 | else | |
| 86 | if math.random(0, 100) == 50 then | |
| 87 | hum.Health = hum.Health - dmg*multiplier*2.5 | |
| 88 | else | |
| 89 | hum.Health = hum.Health -dmg*multiplier | |
| 90 | end | |
| 91 | return true | |
| 92 | end | |
| 93 | end | |
| 94 | end | |
| 95 | end | |
| 96 | end | |
| 97 | function soundeffect(id, volume, speed, parent) | |
| 98 | spawn(function() | |
| 99 | local s = Instance.new("Sound")
| |
| 100 | s.SoundId = id | |
| 101 | s.Volume = volume | |
| 102 | s.PlaybackSpeed = speed | |
| 103 | s.Parent = parent | |
| 104 | s:Play() | |
| 105 | repeat wait() until not s.Playing | |
| 106 | s:Destroy() | |
| 107 | end) | |
| 108 | end | |
| 109 | function gethum(obj) | |
| 110 | if obj.Parent then | |
| 111 | if obj.Parent:FindFirstChild("Humanoid") then
| |
| 112 | if obj.Parent.Name ~= plr.Name then | |
| 113 | return obj.Parent:FindFirstChildOfClass("Humanoid")
| |
| 114 | end | |
| 115 | end | |
| 116 | end | |
| 117 | end | |
| 118 | function smooth(obj) | |
| 119 | local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"}
| |
| 120 | for i,v in pairs(sides) do | |
| 121 | obj[v.."Surface"] = "SmoothNoOutlines" | |
| 122 | end | |
| 123 | end | |
| 124 | function getparent() | |
| 125 | local par = workspace:FindFirstChild("BasePlate")
| |
| 126 | if not par then par = workspace:FindFirstChild("Base") end
| |
| 127 | if not par then par = char.Head end | |
| 128 | return par | |
| 129 | end | |
| 130 | function fade(obj, dest, grow) | |
| 131 | spawn(function() | |
| 132 | local oldcf = obj.CFrame | |
| 133 | for i = 0, 10 do | |
| 134 | if grow then | |
| 135 | obj.Size = obj.Size +Vector3.new(1,1,1) | |
| 136 | obj.CFrame = oldcf | |
| 137 | end | |
| 138 | obj.Transparency = obj.Transparency +0.1 | |
| 139 | swait() | |
| 140 | end | |
| 141 | if dest then | |
| 142 | obj:Destroy() | |
| 143 | end | |
| 144 | end) | |
| 145 | end | |
| 146 | function replacejoint(name) | |
| 147 | local j = torso:FindFirstChild(name) | |
| 148 | if not j then j = char.HumanoidRootPart:FindFirstChild(name) end | |
| 149 | if j then | |
| 150 | if true then | |
| 151 | local new = Instance.new("Weld")
| |
| 152 | new.Part0 = j.Part0 | |
| 153 | j.Part0 = nil | |
| 154 | new.Name = j.Name.." Replacement" | |
| 155 | new.Parent = j.Parent | |
| 156 | new.Part1 = j.Part1 | |
| 157 | new.C0 = j.C0 | |
| 158 | new.C1 = j.C1 | |
| 159 | return new | |
| 160 | end | |
| 161 | end | |
| 162 | end | |
| 163 | function removejoint(name) | |
| 164 | local j = torso:FindFirstChild(name.." Replacement") | |
| 165 | if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end | |
| 166 | if j then | |
| 167 | local p0 = j.Part0 | |
| 168 | local c0 = j.C0 | |
| 169 | local c1 = j.C1 | |
| 170 | j:Destroy() | |
| 171 | local new = p0:FindFirstChild(name) | |
| 172 | local ac0 = new.C0 | |
| 173 | local ac1 = new.C1 | |
| 174 | new.Part0 = p0 | |
| 175 | new.C0 = c0 | |
| 176 | new.C1 = c1 | |
| 177 | spawn(function() | |
| 178 | for i = 0, 1, 0.1 do | |
| 179 | new.C0 = new.C0:Lerp(ac0, 0.7) | |
| 180 | new.C1 = new.C1:lerp(ac1, 0.7) | |
| 181 | wait() | |
| 182 | end | |
| 183 | end) | |
| 184 | end | |
| 185 | end | |
| 186 | function fixalljoints() | |
| 187 | for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
| |
| 188 | removejoint(v) | |
| 189 | end | |
| 190 | end | |
| 191 | function getnewjoints() | |
| 192 | local rs = replacejoint("Right Shoulder")
| |
| 193 | local ls = replacejoint("Left Shoulder")
| |
| 194 | local rh = replacejoint("Right Hip")
| |
| 195 | local lh = replacejoint("Left Hip")
| |
| 196 | local neck = replacejoint("Neck")
| |
| 197 | local rj = replacejoint("RootJoint")
| |
| 198 | return rs,ls,rh,lh,neck,rj | |
| 199 | end | |
| 200 | function chargegui() | |
| 201 | local gui = Instance.new("ScreenGui")
| |
| 202 | gui.Name = "Charge" | |
| 203 | item1 = Instance.new('TextLabel')
| |
| 204 | item1.Active = false | |
| 205 | item1.AnchorPoint = Vector2.new(0, 0) | |
| 206 | item1.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 207 | item1.BackgroundTransparency = 1 | |
| 208 | item1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 209 | item1.BorderSizePixel = 1 | |
| 210 | item1.Name = [[TextLabel]] | |
| 211 | item1.Position = UDim2.new(0,620,0,11) | |
| 212 | item1.Rotation = 0 | |
| 213 | item1.Selectable = false | |
| 214 | item1.Size = UDim2.new(0,204,0,25) | |
| 215 | item1.SizeConstraint = Enum.SizeConstraint.RelativeXY | |
| 216 | item1.Visible = true | |
| 217 | item1.ZIndex = 1 | |
| 218 | item1.ClipsDescendants = false | |
| 219 | item1.Draggable = false | |
| 220 | item1.Font = Enum.Font.SourceSansLight | |
| 221 | item1.FontSize = Enum.FontSize.Size24 | |
| 222 | item1.Text = [[Charge Level]] | |
| 223 | item1.TextColor3 = Color3.new(0, 0, 0) | |
| 224 | item1.TextScaled = false | |
| 225 | item1.TextSize = 24 | |
| 226 | item1.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 227 | item1.TextStrokeTransparency = 1 | |
| 228 | item1.TextTransparency = 0 | |
| 229 | item1.TextWrapped = false | |
| 230 | item1.TextXAlignment = Enum.TextXAlignment.Center | |
| 231 | item1.TextYAlignment = Enum.TextYAlignment.Center | |
| 232 | item1.Parent = gui | |
| 233 | item2 = Instance.new('Frame')
| |
| 234 | item2.Active = false | |
| 235 | item2.AnchorPoint = Vector2.new(0, 0) | |
| 236 | item2.BackgroundColor3 = Color3.new(0, 0.760784, 0.0470588) | |
| 237 | item2.BackgroundTransparency = 0 | |
| 238 | item2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 239 | item2.BorderSizePixel = 0 | |
| 240 | item2.Name = [[Bar]] | |
| 241 | item2.Position = UDim2.new(0,566,0,49) | |
| 242 | item2.Rotation = 0 | |
| 243 | item2.Selectable = false | |
| 244 | item2.Size = UDim2.new(0,312,0,55) | |
| 245 | item2.SizeConstraint = Enum.SizeConstraint.RelativeXY | |
| 246 | item2.Visible = true | |
| 247 | item2.ZIndex = 2 | |
| 248 | item2.ClipsDescendants = false | |
| 249 | item2.Draggable = false | |
| 250 | item2.Parent = gui | |
| 251 | item3 = Instance.new('Frame')
| |
| 252 | item3.Active = false | |
| 253 | item3.AnchorPoint = Vector2.new(0, 0) | |
| 254 | item3.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 255 | item3.BackgroundTransparency = 0 | |
| 256 | item3.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 257 | item3.BorderSizePixel = 0 | |
| 258 | item3.Name = [[Frame]] | |
| 259 | item3.Position = UDim2.new(0,561,0,45) | |
| 260 | item3.Rotation = 0 | |
| 261 | item3.Selectable = false | |
| 262 | item3.Size = UDim2.new(0,322,0,54) | |
| 263 | item3.SizeConstraint = Enum.SizeConstraint.RelativeXY | |
| 264 | item3.Visible = true | |
| 265 | item3.ZIndex = 1 | |
| 266 | item3.ClipsDescendants = false | |
| 267 | item3.Draggable = false | |
| 268 | item3.Parent = gui | |
| 269 | gui.Parent = plr.PlayerGui | |
| 270 | return gui | |
| 271 | end | |
| 272 | local keyamount = 0 | |
| 273 | mouse.KeyDown:connect(function(key) | |
| 274 | if key == "w" or key == "a" or key == "s" or key == "d" then | |
| 275 | keyamount = keyamount + 1 | |
| 276 | if animpose ~= "Falling" then | |
| 277 | animpose = "Walking" | |
| 278 | if keyamount > 3 then keyamount = 0 end | |
| 279 | end | |
| 280 | end | |
| 281 | end) | |
| 282 | mouse.KeyUp:connect(function(key) | |
| 283 | if key == "w" or key == "a" or key == "s" or key == "d" then | |
| 284 | keyamount = keyamount - 1 | |
| 285 | if keyamount < 0 then keyamount = 0 end | |
| 286 | if keyamount == 0 then | |
| 287 | animpose = "Idle" | |
| 288 | end | |
| 289 | end | |
| 290 | end) | |
| 291 | local model = Instance.new("Model")
| |
| 292 | model.Name = "YOYO" | |
| 293 | item1 = Instance.new('Part')
| |
| 294 | item1.BrickColor = BrickColor.new('Really black')
| |
| 295 | item1.Material = Enum.Material.Plastic | |
| 296 | item1.Reflectance = 0 | |
| 297 | item1.Transparency = 0 | |
| 298 | item1.Name = 'Part1' | |
| 299 | item1.Anchored = false | |
| 300 | item1.CanCollide = true | |
| 301 | item1.Locked = true | |
| 302 | item1.Size = Vector3.new(0.299999982, 1.10000002, 1.10000002) smooth(item1) | |
| 303 | item1.Parent = model | |
| 304 | item2 = Instance.new('Part')
| |
| 305 | item2.BrickColor = BrickColor.new('White')
| |
| 306 | item2.Material = Enum.Material.Neon | |
| 307 | item2.Reflectance = 0 | |
| 308 | item2.Transparency = 0 | |
| 309 | item2.Name = 'Handle' | |
| 310 | item2.Anchored = false | |
| 311 | item2.CanCollide = true | |
| 312 | item2.Locked = true | |
| 313 | item2.Size = Vector3.new(0.299999982, 0.700000048, 0.700000048) smooth(item2) | |
| 314 | item2.Parent = model | |
| 315 | item3 = Instance.new('Part')
| |
| 316 | item3.BrickColor = BrickColor.new('Really black')
| |
| 317 | item3.Material = Enum.Material.Plastic | |
| 318 | item3.Reflectance = 0 | |
| 319 | item3.Transparency = 0 | |
| 320 | item3.Name = 'Part2' | |
| 321 | item3.Anchored = false | |
| 322 | item3.CanCollide = true | |
| 323 | item3.Locked = true | |
| 324 | item3.Size = Vector3.new(0.299999982, 1.10000002, 1.10000002) smooth(item3) | |
| 325 | item3.Parent = model | |
| 326 | item4 = Instance.new('Weld')
| |
| 327 | item4.Name = 'Weld' | |
| 328 | item4.Part0 = model.Part1 | |
| 329 | item4.Part1 = model.Handle | |
| 330 | item4.C0 = CFrame.new(-55.2500038, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 331 | item4.C1 = CFrame.new(-55.5500031, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 332 | item4.Parent = model.Part1 | |
| 333 | item5 = Instance.new('Weld')
| |
| 334 | item5.Name = 'Weld' | |
| 335 | item5.Part0 = model.Part2 | |
| 336 | item5.Part1 = model.Part1 | |
| 337 | item5.C0 = CFrame.new(-55.8500023, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 338 | item5.C1 = CFrame.new(-55.2500038, -0.0500000007, -54.4500008, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 339 | item5.Parent = model.Part2 | |
| 340 | item6 = Instance.new('SpecialMesh')
| |
| 341 | item6.Name = 'Mesh' | |
| 342 | item6.MeshType = Enum.MeshType.Cylinder | |
| 343 | item6.MeshId = '' | |
| 344 | item6.Scale = Vector3.new(1, 1, 1) | |
| 345 | item6.Parent = model.Part1 | |
| 346 | item7 = Instance.new('SpecialMesh')
| |
| 347 | item7.Name = 'Mesh' | |
| 348 | item7.MeshType = Enum.MeshType.Cylinder | |
| 349 | item7.MeshId = '' | |
| 350 | item7.Scale = Vector3.new(1, 1, 1) | |
| 351 | item7.Parent = model.Handle | |
| 352 | item8 = Instance.new('SpecialMesh')
| |
| 353 | item8.Name = 'Mesh' | |
| 354 | item8.MeshType = Enum.MeshType.Cylinder | |
| 355 | item8.MeshId = '' | |
| 356 | item8.Scale = Vector3.new(1, 1, 1) | |
| 357 | item8.Parent = model.Part2 | |
| 358 | model.Parent = char | |
| 359 | local handle = model.Handle | |
| 360 | local handlew = Instance.new("Weld")
| |
| 361 | handlew.Part0 = handle | |
| 362 | handlew.Part1 = char["Right Arm"] | |
| 363 | handlew.C1 = CFrame.new(0,-1,0) | |
| 364 | handlew.Parent = handle | |
| 365 | for i,v in pairs(model:children()) do | |
| 366 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
| 367 | end | |
| 368 | ||
| 369 | local gdown = false | |
| 370 | local tdown = false | |
| 371 | mouse.KeyDown:connect(function(key) | |
| 372 | if key == "g" and not attacking and not gdown then | |
| 373 | local rs = replacejoint("Right Shoulder")
| |
| 374 | local ls = replacejoint("Left Shoulder")
| |
| 375 | local rj = replacejoint("RootJoint")
| |
| 376 | gdown = true | |
| 377 | attacking = true | |
| 378 | local gui = chargegui() | |
| 379 | local bar = gui.Bar | |
| 380 | local power = 0 | |
| 381 | repeat swait() | |
| 382 | power = power + 5 | |
| 383 | if power > 312 then power = 312 end | |
| 384 | bar.Size = UDim2.new(0,(power/312)*312,0,55) | |
| 385 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.156434491, -0.987688541, 0, 0.987688541, 0.156434491, 1, 0, 0), 0.2) | |
| 386 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.00657593738, -0.199269861, 0.979922593, -0.590055168, 0.791935623, 0.157082453, -0.807337344, -0.577175498, -0.122787893), 0.2) | |
| 387 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.987688661, -0.156434506, 0, 0, 0, 1, -0.156434506, 0.987688661, 0), 0.2) | |
| 388 | until not gdown | |
| 389 | gui:Destroy() | |
| 390 | for i = 0, 2, 0.1 do | |
| 391 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0523359701, -0.998629749, 0, 0.998629749, 0.0523359701, 1, 0, 0), 0.2) | |
| 392 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.128450975, 0.152486846, 0.979922593, 0.968406498, -0.193699107, 0.157082453, 0.213763118, 0.969141543, -0.122787893), 0.2) | |
| 393 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.992546797, 0.1218694, 0, 0, 0, 1, 0.1218694, 0.992546797, 0), 0.2) | |
| 394 | if i == 0.5 then | |
| 395 | handlew.Part0 = nil | |
| 396 | local bv = Instance.new("BodyVelocity")
| |
| 397 | bv.MaxForce = huge | |
| 398 | bv.Velocity = CFrame.new(handle.Position, mouse.Hit.p).lookVector*(power*0.5) | |
| 399 | bv.Parent = handle | |
| 400 | game.Debris:AddItem(bv, 0.1) | |
| 401 | local con | |
| 402 | local w | |
| 403 | con = handle.Touched:connect(function(hit) | |
| 404 | if hurt(hit, 10) then | |
| 405 | con:disconnect() | |
| 406 | w = Instance.new("Weld")
| |
| 407 | w.Part0 = hit | |
| 408 | w.Part1 = handle | |
| 409 | w.C0 = hit.CFrame:inverse() | |
| 410 | w.C1 = handle.CFrame:inverse() | |
| 411 | w.Parent = hit | |
| 412 | end | |
| 413 | end) | |
| 414 | local num = 0 | |
| 415 | repeat swait() | |
| 416 | trail = true | |
| 417 | num = num + 1 | |
| 418 | until num >= 100 or w | |
| 419 | if not w then con:disconnect() end | |
| 420 | handlew.C0 = CFrame.new(0,0,0) | |
| 421 | handlew.C1 = CFrame.new(0,-1,0) | |
| 422 | local cf = handle.CFrame | |
| 423 | for i = 1, 20 do | |
| 424 | handle.Anchored = false | |
| 425 | handle.CFrame = cf:Lerp(char["Right Arm"].CFrame *CFrame.new(0,-1,0), i/20) | |
| 426 | handle.Anchored = true | |
| 427 | swait() | |
| 428 | end | |
| 429 | if w then w:Destroy() end | |
| 430 | handle.Anchored = false | |
| 431 | trail = false | |
| 432 | handlew.Part0 = handle | |
| 433 | end | |
| 434 | swait() | |
| 435 | end | |
| 436 | ||
| 437 | attacking = false | |
| 438 | fixalljoints() | |
| 439 | end | |
| 440 | if key == "f" and not attacking then | |
| 441 | attacking = true | |
| 442 | humanoid.WalkSpeed = 0 | |
| 443 | local touch = false | |
| 444 | local num = 0 | |
| 445 | local parts = {}
| |
| 446 | local last = char.Torso.CFrame *CFrame.new(0,-3,0) | |
| 447 | local lastscale = 1.5 | |
| 448 | local x,z = 0,0 | |
| 449 | local udown = false | |
| 450 | handlew.Part0 = nil | |
| 451 | local con = mouse.KeyDown:connect(function(key) | |
| 452 | if key == "w" then | |
| 453 | z = z + -2 | |
| 454 | udown = true | |
| 455 | end | |
| 456 | if key == "a" then | |
| 457 | x = x + -0.3 | |
| 458 | end | |
| 459 | if key == "d" then | |
| 460 | x = x + 0.3 | |
| 461 | end | |
| 462 | end) | |
| 463 | local con2 = mouse.KeyUp:connect(function(key) | |
| 464 | if key == "w" then | |
| 465 | udown = false | |
| 466 | z = z - -2 | |
| 467 | end | |
| 468 | if key == "a" then | |
| 469 | x = x - -0.3 | |
| 470 | end | |
| 471 | if key == "d" then | |
| 472 | x = x - 0.3 | |
| 473 | end | |
| 474 | end) | |
| 475 | local dir = char.Torso.CFrame.lookVector | |
| 476 | local o = workspace.CurrentCamera.CameraType | |
| 477 | handle.Anchored = true | |
| 478 | repeat swait() | |
| 479 | local start = last *CFrame.new(0,0,-lastscale/2) | |
| 480 | local thing = false | |
| 481 | if z == 0 then | |
| 482 | z = -2 | |
| 483 | thing = true | |
| 484 | end | |
| 485 | local finish = last *CFrame.new(x,0,z) | |
| 486 | local mag = (start.p-finish.p).magnitude | |
| 487 | num = num + 1 | |
| 488 | local p = Instance.new("Part")
| |
| 489 | p.Size = Vector3.new(1,0.2,mag) | |
| 490 | p.Name = "cool looking line that is just for looks" | |
| 491 | p.Anchored = true | |
| 492 | p.BrickColor = BrickColor.new("White")
| |
| 493 | p.Material = "Neon" | |
| 494 | smooth(p) | |
| 495 | p.CFrame = CFrame.new(start.p, finish.p) | |
| 496 | p.CFrame = p.CFrame *CFrame.new(0,0,-mag/2) | |
| 497 | handle.Anchored = false | |
| 498 | handle.CFrame = p.CFrame *CFrame.new(0.3,0,0) | |
| 499 | handle.Anchored = true | |
| 500 | last = p.CFrame | |
| 501 | lastscale = mag | |
| 502 | local m = Instance.new("SpecialMesh")
| |
| 503 | m.MeshType = "Brick" | |
| 504 | m.Parent = p | |
| 505 | p.Touched:connect(function(hit) | |
| 506 | if hurt(hit, 200) then | |
| 507 | touch = true | |
| 508 | local p1 = Instance.new("Part")
| |
| 509 | soundeffect("rbxassetid://636458264", 2, 1, p1)
| |
| 510 | p1.Anchored = true | |
| 511 | p1.CanCollide = false | |
| 512 | p1.BrickColor = BrickColor.new("White")
| |
| 513 | p1.Material = "Neon" | |
| 514 | p1.Name = "omega ex-u-plosion" | |
| 515 | p1.CFrame = p.CFrame | |
| 516 | p1.Size = Vector3.new(0.2,0.2,0.2) | |
| 517 | p1.Transparency = 1 | |
| 518 | local m = Instance.new("SpecialMesh")
| |
| 519 | m.MeshType = "Sphere" | |
| 520 | m.Parent = p1 | |
| 521 | p1.Parent = getparent() | |
| 522 | local sub = -0.1 | |
| 523 | for i = 1, 30 do | |
| 524 | if i >= 15 then sub = 0.1 end | |
| 525 | p1.Transparency = p1.Transparency + sub | |
| 526 | local cf = p1.CFrame | |
| 527 | p1.Size = p1.Size:Lerp(Vector3.new(10,10,10),0.2) | |
| 528 | p1.CFrame = cf | |
| 529 | swait() | |
| 530 | end | |
| 531 | p1:Destroy() | |
| 532 | end | |
| 533 | end) | |
| 534 | table.insert(parts, p) | |
| 535 | p.Parent = getparent() | |
| 536 | workspace.CurrentCamera.CameraType = "Scriptable" | |
| 537 | workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(p.CFrame *CFrame.new(0,2,2),0.5) | |
| 538 | if thing then | |
| 539 | z = 0 thing = false | |
| 540 | end | |
| 541 | until touch or num == 500 | |
| 542 | handle.Anchored = false | |
| 543 | local cf = handle.CFrame | |
| 544 | for i = 1, 40 do | |
| 545 | handle.Anchored = false | |
| 546 | handle.CFrame = cf:Lerp(char["Right Arm"].CFrame *CFrame.new(0,-1,0), i/20) | |
| 547 | handle.Anchored = true | |
| 548 | swait() | |
| 549 | end | |
| 550 | handle.Anchored = false | |
| 551 | handlew.Part0 = handle | |
| 552 | workspace.CurrentCamera.CameraType = o | |
| 553 | for i = 0, 1, 0.1 do | |
| 554 | for i,v in pairs(parts) do | |
| 555 | v.Mesh.Scale = v.Mesh.Scale:Lerp(Vector3.new(0,1,1),0.3) | |
| 556 | end | |
| 557 | swait() | |
| 558 | end | |
| 559 | for i,v in pairs(parts) do | |
| 560 | v:Destroy() | |
| 561 | end | |
| 562 | humanoid.WalkSpeed = 16 | |
| 563 | attacking = false | |
| 564 | end | |
| 565 | if key == "y" and not attacking then | |
| 566 | attacking = true | |
| 567 | local rs = replacejoint("Right Shoulder")
| |
| 568 | local ls = replacejoint("Left Shoulder")
| |
| 569 | local rj = replacejoint("RootJoint")
| |
| 570 | local num = 0 | |
| 571 | for i = 0, 2, 0.1 do | |
| 572 | handlew.C1 = handlew.C1:Lerp(CFrame.new(0,-4,0), 0.2) | |
| 573 | ls.C0 = ls.C0:Lerp(CFrame.new(-0.754648447, 0.476126075, -0.315012902, -0.0523041263, -0.613378763, -0.788055778, -0.998022199, 0.0596848764, 0.0197843909, 0.0348996557, 0.78753221, -0.615287662), 0.2) | |
| 574 | rs.C0 = rs.C0:Lerp(CFrame.new(0.759603679, 0.487401366, -0.319454879, -0.0523360372, 0.600990534, 0.797541499, 0.99863106, 0.0314966701, 0.0417973027, -9.12696123e-008, 0.798637211, -0.601816177), 0.2) | |
| 575 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
| 576 | swait() | |
| 577 | end | |
| 578 | trail = true | |
| 579 | local connection = handle.Touched:connect(function(hit) | |
| 580 | hurt(hit, math.random(20,50)) | |
| 581 | end) | |
| 582 | for i = 0, 150 do | |
| 583 | if i%20 == 0 then soundeffect("rbxassetid://541909867", 2, 2, handle) end
| |
| 584 | rj.C0 = rj.C0:Lerp(rj.C0*CFrame.Angles(0,0,math.rad(4*(i/2))), 0.2) | |
| 585 | swait() | |
| 586 | end | |
| 587 | trail = false | |
| 588 | attacking = false | |
| 589 | connection:disconnect() | |
| 590 | fixalljoints() | |
| 591 | handlew.C1 = CFrame.new(0,-1,0) | |
| 592 | end | |
| 593 | if key == "t" and not attacking and not tdown then | |
| 594 | tdown = true | |
| 595 | attacking = true | |
| 596 | local rs = replacejoint("Right Shoulder")
| |
| 597 | handlew.C0 = CFrame.new(3,0,0) | |
| 598 | local power = 0 | |
| 599 | trail = true | |
| 600 | local cons = {}
| |
| 601 | for i,v in pairs(handle.Parent:children()) do | |
| 602 | local con = v.Touched:connect(function(hit) | |
| 603 | hurt(hit, 10) | |
| 604 | end) | |
| 605 | table.insert(cons, con) | |
| 606 | end | |
| 607 | repeat swait() | |
| 608 | power = power + 5 | |
| 609 | if power >= 180 then power = 180 end | |
| 610 | rs.C0 = rs.C0:Lerp(CFrame.new(1.52548289, 0.0268524922, 0, 0, -0.998630881, -0.0523358211, 0, -0.0523358211, 0.998630881, -1, 0, 0), 0.2) | |
| 611 | handlew.C1 = handlew.C1 *CFrame.Angles(0,math.rad((power/180)*20),0) | |
| 612 | until not tdown | |
| 613 | handlew.Part0 = nil | |
| 614 | local bv = Instance.new("BodyVelocity")
| |
| 615 | bv.MaxForce = huge | |
| 616 | bv.Velocity = CFrame.new(handle.Position, mouse.Hit.p).lookVector*power | |
| 617 | bv.Parent = handle | |
| 618 | game.Debris:AddItem(bv, 0.1) | |
| 619 | fixalljoints() | |
| 620 | swait(100) | |
| 621 | for i,v in pairs(cons) do | |
| 622 | v:disconnect() | |
| 623 | end | |
| 624 | local cf = handle.CFrame | |
| 625 | for i = 1, 20 do | |
| 626 | handle.Anchored = false | |
| 627 | handle.CFrame = cf:Lerp(char["Right Arm"].CFrame *CFrame.new(0,-1,0), i/20) | |
| 628 | handle.Anchored = true | |
| 629 | swait() | |
| 630 | end | |
| 631 | handle.Anchored = false | |
| 632 | handlew.C1 = CFrame.new(0,-1,0) | |
| 633 | handlew.C0 = CFrame.new(0,0,0) | |
| 634 | trail = false | |
| 635 | handlew.Part0 = handle | |
| 636 | attacking = false | |
| 637 | end | |
| 638 | end) | |
| 639 | mouse.KeyUp:connect(function(key) | |
| 640 | if key == "g" and attacking then | |
| 641 | gdown = false | |
| 642 | end | |
| 643 | if key == "t" and attacking then | |
| 644 | tdown = false | |
| 645 | end | |
| 646 | end) | |
| 647 | local parts = {}
| |
| 648 | spawn(function() | |
| 649 | local num = 0 | |
| 650 | local lastpart = nil | |
| 651 | local lastscale = 0.5 | |
| 652 | local cf = handle.CFrame | |
| 653 | while swait() do | |
| 654 | for i,v in pairs(parts) do | |
| 655 | if v:FindFirstChild("Mesh") then
| |
| 656 | v.Mesh.Scale = v.Mesh.Scale:Lerp(Vector3.new(0,0,1), 0.2) | |
| 657 | if v.Mesh.Scale.X < 0.05 then | |
| 658 | v:Destroy() | |
| 659 | end | |
| 660 | end | |
| 661 | end | |
| 662 | if trail and handle.CFrame ~= cf then | |
| 663 | if not lastpart then lastpart = handle end | |
| 664 | local start = lastpart.CFrame *CFrame.new(0,0,-lastscale/2) | |
| 665 | local endpos = handle.CFrame | |
| 666 | local mag = (start.p-endpos.p).magnitude | |
| 667 | local p = Instance.new("Part")
| |
| 668 | p.Anchored = true | |
| 669 | p.BrickColor = BrickColor.new("White")
| |
| 670 | p.Material = "Neon" | |
| 671 | p.CanCollide = false | |
| 672 | p.Size = Vector3.new(0.5,0.5,mag) | |
| 673 | p.CFrame = CFrame.new(start.p, endpos.p)*CFrame.new(0,0,-mag/2) | |
| 674 | local m = Instance.new("SpecialMesh")
| |
| 675 | m.MeshType = "Brick" | |
| 676 | m.Parent = p | |
| 677 | p.Parent = getparent() | |
| 678 | table.insert(parts, p) | |
| 679 | cf = handle.CFrame | |
| 680 | lastscale = mag | |
| 681 | lastpart = p | |
| 682 | else | |
| 683 | if lastpart then | |
| 684 | lastpart:Destroy() | |
| 685 | lastpart = nil | |
| 686 | lastscale = 0.5 | |
| 687 | end | |
| 688 | end | |
| 689 | local v = char.HumanoidRootPart.Velocity | |
| 690 | if v.Y > 15 then | |
| 691 | animpose = "Jump" | |
| 692 | end | |
| 693 | if v.Y < -15 then | |
| 694 | animpose = "Falling" | |
| 695 | end | |
| 696 | if math.abs(v.X)+math.abs(v.Z) >=10 and v.Y == 0 then | |
| 697 | animpose = "Walking" | |
| 698 | end | |
| 699 | if math.abs(v.X)+v.Y+math.abs(v.Z) <= 9 and v.Y == 0 then | |
| 700 | animpose = "Idle" | |
| 701 | end | |
| 702 | end | |
| 703 | end) | |
| 704 | local num = 0 | |
| 705 | while swait() do | |
| 706 | num = num + 0.05 | |
| 707 | local sin = math.sin(num) | |
| 708 | if animpose == "Walking" and cananim then | |
| 709 | for i = 0, 1.5, 0.1 do | |
| 710 | if animpose == "Walking" and cananim then | |
| 711 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0.0406726934, 0.0329360999, -0.99862957, 0.776081443, 0.62845856, 0.0523359552, 0.629320979, -0.777146459, 0), 0.2) | |
| 712 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.0388932228, -0.0350196026, 0.998629689, 0.742127001, 0.668214321, 0.0523359627, -0.66913116, 0.743145287, 0), 0.2) | |
| 713 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.024677692, 0.0246776957, -0.999390841, 0.706676483, 0.706676781, 0.0348994955, 0.707107425, -0.707107246, 0), 0.2) | |
| 714 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0136363264, -0.032125175, 0.999390841, 0.390493214, 0.919944584, 0.0348994955, -0.920505524, 0.390731305, 0), 0.2) | |
| 715 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
| 716 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.99969542, -0.0174524058, 0.0174497478, 0.0174524058, 0, 0.99984771, -0.0174497478, 0.99984771, 0.000304586458), 0.2) | |
| 717 | swait() | |
| 718 | else | |
| 719 | break | |
| 720 | end | |
| 721 | end | |
| 722 | for i = 0, 1.5, 0.1 do | |
| 723 | if animpose == "Walking" and cananim then | |
| 724 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.0433885492, 0.0292659476, -0.99862957, -0.827903032, 0.558427453, 0.0523359552, 0.559194028, 0.829038858, 0), 0.2) | |
| 725 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0.0400917344, -0.0336409658, 0.998629689, -0.764996171, 0.641907811, 0.0523359627, -0.642788768, -0.76604563, 0), 0.2) | |
| 726 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0163843632, 0.0308145005, -0.999390841, -0.469186544, 0.882411182, 0.0348994955, 0.882949054, 0.469472289, 0), 0.2) | |
| 727 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.0246777162, -0.0246777181, 0.999390841, -0.70667702, 0.70667696, 0.0348994955, -0.707107902, -0.707107782, 0), 0.2) | |
| 728 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
| 729 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.999695539, 0.0174497515, -0.0174524095, -0.0174497515, 0.000304586574, 0.999847829, 0.0174524058, 0.99984771, -2.90993982e-11), 0.2) | |
| 730 | swait() | |
| 731 | else | |
| 732 | break | |
| 733 | end | |
| 734 | end | |
| 735 | end | |
| 736 | if animpose == "Idle" and cananim then | |
| 737 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2) | |
| 738 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.0523359552, 0.99862957, 0, 0.99862957, 0.0523359552, -1, -0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2) | |
| 739 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.2) | |
| 740 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.2) | |
| 741 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.994522035, -0.104528472, 0, 0, 0, 1, -0.104528472, 0.994522035, 0), 0.2) | |
| 742 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.997564137, 0.0697564781, 0, 0, 0, 1, 0.0697564781, 0.997564137, 0), 0.2) | |
| 743 | swait() | |
| 744 | end | |
| 745 | if animpose == "Jump" and cananim then | |
| 746 | for i = 0, 0.8, 0.1 do | |
| 747 | if animpose == "Jump" and cananim then | |
| 748 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2) | |
| 749 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.104528472, 0.994522035, 0, 0.994522035, 0.104528472, -1, -0, 0), 0.2) | |
| 750 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.499999911, -0.5, 0, 0, -1, 0.309017062, 0.951056957, 0, 0.951056957, -0.309017062, 0), 0.2) | |
| 751 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, 0, 1, -0.121869355, 0.99254632, 0, -0.99254632, -0.121869355, 0), 0.2) | |
| 752 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
| 753 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
| 754 | swait() | |
| 755 | else | |
| 756 | break | |
| 757 | end | |
| 758 | end | |
| 759 | end | |
| 760 | if animpose == "Falling" and cananim then | |
| 761 | ls.C0 = ls.C0:Lerp(CFrame.new(-0.987813056, 0.599254608, 0, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2) | |
| 762 | rs.C0 = rs.C0:Lerp(CFrame.new(0.986082673, 0.599026859, 0, 0, -0.139173135, 0.990268409, 0, 0.990268409, 0.139173135, -1, 0, 0), 0.2) | |
| 763 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.963904023, 0.0336604826, 0, 0.104528472, -0.994522035, 0.0697564557, 0.992099881, 0.1042739, 0.997564554, -0.0693743229, -0.00729153492), 0.2) | |
| 764 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0697564781, 0.997564137, -0.121869355, 0.990128577, 0.0692365244, -0.99254632, -0.121572495, -0.00850117672), 0.2) | |
| 765 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0.13917312, 0.99026823, 0, 0.99026823, -0.13917312), 0.2) | |
| 766 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
| 767 | end | |
| 768 | end |