SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | - | local Player = game:service("Players").LocalPlayer
|
| 2 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 3 | do | |
| 4 | - | local mouse = Player:GetMouse() |
| 4 | + | print("FE Compatibility code by Mokiros")
|
| 5 | script.Parent = Player.Character | |
| 6 | ||
| 7 | --RemoteEvent for communicating | |
| 8 | local Event = Instance.new("RemoteEvent")
| |
| 9 | Event.Name = "UserInput_Event" | |
| 10 | ||
| 11 | --Fake event to make stuff like Mouse.KeyDown work | |
| 12 | local function fakeEvent() | |
| 13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 14 | t.connect = t.Connect | |
| 15 | return t | |
| 16 | end | |
| 17 | ||
| 18 | --Creating fake input objects with fake variables | |
| 19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 23 | end} | |
| 24 | --Merged 2 functions into one by checking amount of arguments | |
| 25 | CAS.UnbindAction = CAS.BindAction | |
| 26 | ||
| 27 | --This function will trigger the events that have been :Connect()'ed | |
| 28 | local function te(self,ev,...) | |
| 29 | local t = m[ev] | |
| 30 | if t and t._fakeEvent and t.Function then | |
| 31 | t.Function(...) | |
| 32 | end | |
| 33 | end | |
| 34 | m.TrigEvent = te | |
| 35 | UIS.TrigEvent = te | |
| 36 | ||
| 37 | Event.OnServerEvent:Connect(function(plr,io) | |
| 38 | if plr~=Player then return end | |
| 39 | if io.isMouse then | |
| 40 | - | game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump) |
| 40 | + | m.Target = io.Target |
| 41 | m.Hit = io.Hit | |
| 42 | else | |
| 43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 46 | end | |
| 47 | for _,t in pairs(CAS.Actions) do | |
| 48 | for _,k in pairs(t.Keys) do | |
| 49 | if k==io.KeyCode then | |
| 50 | t.Function(t.Name,io.UserInputState,io) | |
| 51 | end | |
| 52 | end | |
| 53 | end | |
| 54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 56 | end | |
| 57 | end) | |
| 58 | Event.Parent = NLS([==[ | |
| 59 | local Player = game:GetService("Players").LocalPlayer
| |
| 60 | local Event = script:WaitForChild("UserInput_Event")
| |
| 61 | ||
| 62 | local UIS = game:GetService("UserInputService")
| |
| 63 | local input = function(io,a) | |
| 64 | if a then return end | |
| 65 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 67 | end | |
| 68 | UIS.InputBegan:Connect(input) | |
| 69 | UIS.InputEnded:Connect(input) | |
| 70 | ||
| 71 | local Mouse = Player:GetMouse() | |
| 72 | local h,t | |
| 73 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 74 | --If player is not moving their mouse, client won't fire events | |
| 75 | while wait(1/30) do | |
| 76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 77 | h,t=Mouse.Hit,Mouse.Target | |
| 78 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 79 | end | |
| 80 | end]==],Player.Character) | |
| 81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 82 | end | |
| 83 | --==//==-- | |
| 84 | local Player = owner | |
| 85 | local Char = Player.Character | |
| 86 | local Humanoid = Char:findFirstChild("Humanoid")
| |
| 87 | local Torso = Char:findFirstChild("Torso")
| |
| 88 | ---------------------------------------------------------- | |
| 89 | z = Instance.new("Sound", Torso)
| |
| 90 | z.SoundId = "rbxassetid://449449855" -- Put Music ID Here. | |
| 91 | z.Looped = true | |
| 92 | z.Volume = 10 | |
| 93 | wait(.1) | |
| 94 | z:Play() | |
| 95 | ------------------------ | |
| 96 | local Head = Char.Head | |
| 97 | local ra = Char:findFirstChild("Right Arm")
| |
| 98 | local la = Char:findFirstChild("Left Arm")
| |
| 99 | local rl = Char:findFirstChild("Right Leg")
| |
| 100 | local ll = Char:findFirstChild("Left Leg")
| |
| 101 | local rs = Torso:findFirstChild("Right Shoulder")
| |
| 102 | local ls = Torso:findFirstChild("Left Shoulder")
| |
| 103 | local rh = Torso:findFirstChild("Right Hip")
| |
| 104 | local lh = Torso:findFirstChild("Left Hip")
| |
| 105 | local neck = Torso:findFirstChild("Neck")
| |
| 106 | local rp = Char:findFirstChild("HumanoidRootPart")
| |
| 107 | rp.Archivable = true | |
| 108 | local rj = rp:findFirstChild("RootJoint")
| |
| 109 | rj.Archivable = true | |
| 110 | local animate = Char:findFirstChild("Animate")
| |
| 111 | local rootpart = Char:findFirstChild("HumanoidRootPart")
| |
| 112 | local Camera = workspace.CurrentCamera | |
| 113 | local CF = CFrame.new | |
| 114 | local components = CF().components | |
| 115 | local magicclrs = {"Really blue", "Really black", "Institutional white"}
| |
| 116 | --local magicclrs = {"Really red", "Deep orange", "New Yeller", "Lime green", "Really blue", "Royal purple", "Bright violet"}
| |
| 117 | rootpart.CanCollide = false | |
| 118 | Humanoid:findFirstChild("Animator"):Destroy()
| |
| 119 | Humanoid.CameraOffset = Vector3.new(0, 2, 0) | |
| 120 | Humanoid.JumpPower = 60 | |
| 121 | owner.Character.Humanoid.Changed:connect(function(jump) | |
| 122 | if jump == "Jump" then | |
| 123 | Humanoid.Jump = false | |
| 124 | end | |
| 125 | end) | |
| 126 | ||
| 127 | ||
| 128 | ||
| 129 | Lerp = function(a,b,c) | |
| 130 | return a+(b-a)*c | |
| 131 | end | |
| 132 | ||
| 133 | function phaseclone() | |
| 134 | Char.Archivable = true | |
| 135 | local Clone1 = Char:Clone() | |
| 136 | Clone1.Parent = game.Workspace | |
| 137 | for i,v in pairs (Clone1:GetChildren()) do | |
| 138 | if v.ClassName == "BodyColors" then | |
| 139 | B = "Really black" | |
| 140 | v.HeadColor = BrickColor.new(B) | |
| 141 | v.LeftArmColor = BrickColor.new(B) | |
| 142 | v.RightArmColor = BrickColor.new(B) | |
| 143 | v.TorsoColor = BrickColor.new(B) | |
| 144 | v.LeftLegColor = BrickColor.new(B) | |
| 145 | v.RightLegColor = BrickColor.new(B) | |
| 146 | elseif not v:IsA("Part") then
| |
| 147 | v:Destroy() | |
| 148 | end | |
| 149 | if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then | |
| 150 | v:Destroy() | |
| 151 | end | |
| 152 | if v:IsA("Part") then
| |
| 153 | v.Transparency = 0.5 | |
| 154 | v.TopSurface = "Smooth" | |
| 155 | v.BottomSurface = "Smooth" | |
| 156 | v.LeftSurface = "Smooth" | |
| 157 | v.RightSurface = "Smooth" | |
| 158 | Bl = "Really black" | |
| 159 | v.BrickColor = BrickColor.new(Bl) | |
| 160 | v.Anchored = true | |
| 161 | v.CanCollide = false | |
| 162 | end | |
| 163 | end | |
| 164 | for i,v in pairs (Clone1:GetChildren()) do | |
| 165 | if v:FindFirstChild("roblox") then
| |
| 166 | v.roblox:Destroy() | |
| 167 | end | |
| 168 | if v:FindFirstChild("face") then
| |
| 169 | v.face:Destroy() | |
| 170 | end | |
| 171 | if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then | |
| 172 | v:Remove() | |
| 173 | end | |
| 174 | end | |
| 175 | wait(0.3) | |
| 176 | for i = 1,5 do | |
| 177 | for _,v in pairs(Clone1:GetChildren()) do | |
| 178 | if v:IsA("Part") then
| |
| 179 | v.Transparency = 0.5+i/5 | |
| 180 | wait() | |
| 181 | end | |
| 182 | end | |
| 183 | end | |
| 184 | Clone1:Destroy() | |
| 185 | end | |
| 186 | ||
| 187 | ||
| 188 | function ctlerp(c1,c2,al) | |
| 189 | local com1 = {c1:components()}
| |
| 190 | local com2 = {c2:components()}
| |
| 191 | for i,v in pairs(com1) do | |
| 192 | com1[i] = Lerp(v,com2[i],al) | |
| 193 | end | |
| 194 | return CF(unpack(com1)) | |
| 195 | end | |
| 196 | ||
| 197 | do | |
| 198 | local function QuaternionFromCFrame(cf) | |
| 199 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 200 | local trace = m00 + m11 + m22 | |
| 201 | if trace > 0 then | |
| 202 | local s = math.sqrt(1 + trace) | |
| 203 | local recip = 0.5/s | |
| 204 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 205 | else | |
| 206 | local i = 0 | |
| 207 | if m11 > m00 then | |
| 208 | i = 1 | |
| 209 | end | |
| 210 | if m22 > (i == 0 and m00 or m11) then | |
| 211 | i = 2 | |
| 212 | end | |
| 213 | if i == 0 then | |
| 214 | local s = math.sqrt(m00-m11-m22+1) | |
| 215 | local recip = 0.5/s | |
| 216 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 217 | elseif i == 1 then | |
| 218 | local s = math.sqrt(m11-m22-m00+1) | |
| 219 | local recip = 0.5/s | |
| 220 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 221 | elseif i == 2 then | |
| 222 | local s = math.sqrt(m22-m00-m11+1) | |
| 223 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 224 | end | |
| 225 | end | |
| 226 | end | |
| 227 | local function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 228 | local xs, ys, zs = x + x, y + y, z + z | |
| 229 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 230 | local xx = x*xs | |
| 231 | local xy = x*ys | |
| 232 | local xz = x*zs | |
| 233 | local yy = y*ys | |
| 234 | local yz = y*zs | |
| 235 | local zz = z*zs | |
| 236 | return CF(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
| 237 | end | |
| 238 | local function QuaternionSlerp(a, b, t) | |
| 239 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 240 | local startInterp, finishInterp; | |
| 241 | if cosTheta >= 0.0001 then | |
| 242 | if (1 - cosTheta) > 0.0001 then | |
| 243 | local theta = math.acos(cosTheta) | |
| 244 | local invSinTheta = 1/math.sin(theta) | |
| 245 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 246 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 247 | else | |
| 248 | startInterp = 1-t | |
| 249 | finishInterp = t | |
| 250 | end | |
| 251 | else | |
| 252 | if (1+cosTheta) > 0.0001 then | |
| 253 | local theta = math.acos(-cosTheta) | |
| 254 | local invSinTheta = 1/math.sin(theta) | |
| 255 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 256 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 257 | else | |
| 258 | startInterp = t-1 | |
| 259 | finishInterp = t | |
| 260 | end | |
| 261 | end | |
| 262 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
| 263 | end | |
| 264 | function clerp(a,b,t) | |
| 265 | local qa = {QuaternionFromCFrame(a)}
| |
| 266 | local qb = {QuaternionFromCFrame(b)}
| |
| 267 | local ax, ay, az = a.x, a.y, a.z | |
| 268 | local bx, by, bz = b.x, b.y, b.z | |
| 269 | local _t = 1-t | |
| 270 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 271 | end | |
| 272 | end | |
| 273 | ||
| 274 | --==/BASE/DEFAULT WELDS/==-- | |
| 275 | rm = Instance.new("Weld", Torso)
| |
| 276 | rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0) | |
| 277 | rm.C1 = CFrame.new(0, 0.5, 0) | |
| 278 | rm.Part0 = Torso | |
| 279 | rm.Part1 = ra | |
| 280 | lm = Instance.new("Weld", Torso)
| |
| 281 | lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0) | |
| 282 | lm.C1 = CFrame.new(0, 0.5, 0) | |
| 283 | lm.Part0 = Torso | |
| 284 | lm.Part1 = la | |
| 285 | rlegm = Instance.new("Weld", Torso)
| |
| 286 | rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0) | |
| 287 | rlegm.C1 = CFrame.new(0, 1, 0) | |
| 288 | rlegm.Part0 = Torso | |
| 289 | rlegm.Part1 = rl | |
| 290 | llegm = Instance.new("Weld", Torso)
| |
| 291 | llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0) | |
| 292 | llegm.C1 = CFrame.new(0, 1, 0) | |
| 293 | llegm.Part0 = Torso | |
| 294 | llegm.Part1 = ll | |
| 295 | neck.C0 = CFrame.new(0,1,0) | |
| 296 | neck.C1 = CFrame.new(0,-0.5,0) | |
| 297 | ||
| 298 | --==/Mage's gauntlet/==-- | |
| 299 | gauntlet = Instance.new("Model", Char)
| |
| 300 | gauntParts = Instance.new("Model", gauntlet)
| |
| 301 | ||
| 302 | local rrng = Instance.new("Part", gauntParts)
| |
| 303 | rrng.Anchored = false | |
| 304 | rrng.CanCollide = false | |
| 305 | rrng.FormFactor = "Custom" | |
| 306 | rrng.TopSurface = "Smooth" | |
| 307 | rrng.BottomSurface = "Smooth" | |
| 308 | rrng.BrickColor = BrickColor.new("Really black")
| |
| 309 | rrng.Transparency = 0 | |
| 310 | local rrngM = Instance.new("FileMesh", rrng)
| |
| 311 | rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 312 | rrngM.Scale = Vector3.new(0.8, 0.8, 0.8) | |
| 313 | local rrngW = Instance.new("Weld", rrng)
| |
| 314 | rrngW.Part1 = rrng | |
| 315 | rrngW.Part0 = ra | |
| 316 | rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 317 | ||
| 318 | local rbg = Instance.new("Part", gauntParts)
| |
| 319 | rbg.Anchored, rbg.CanCollide = false, false | |
| 320 | rbg.FormFactor = "Custom" | |
| 321 | rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth" | |
| 322 | rbg.Color = Color3.new(0, 0, 0) | |
| 323 | rbg.Transparency = 0 | |
| 324 | local rbgM = Instance.new("SpecialMesh", rbg)
| |
| 325 | rbgM.MeshType = "Cylinder" | |
| 326 | rbgM.Scale = Vector3.new(0.01, 0.7, 0.7) | |
| 327 | local rbgW = Instance.new("Weld", rbg)
| |
| 328 | rbgW.Part1 = rbg | |
| 329 | rbgW.Part0 = rrng | |
| 330 | rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0) | |
| 331 | ||
| 332 | local chak = Instance.new("Part", gauntParts)
| |
| 333 | chak.Anchored, chak.CanCollide = false, false | |
| 334 | chak.FormFactor = "Custom" | |
| 335 | chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth" | |
| 336 | chak.Color = Color3.new(1, 1, 1) | |
| 337 | chak.Transparency = 0 | |
| 338 | local chakM = Instance.new("FileMesh", chak)
| |
| 339 | chakM.MeshId = "http://www.roblox.com/asset/?id=47260990" | |
| 340 | chakM.Scale = Vector3.new(0.85, 0.85, 0.85) | |
| 341 | local chakW = Instance.new("Motor", chak)
| |
| 342 | chakW.DesiredAngle = 100000000000 | |
| 343 | chakW.MaxVelocity = 0.1 | |
| 344 | chakW.Part1 = chak | |
| 345 | chakW.Part0 = rrng | |
| 346 | chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0) | |
| 347 | ||
| 348 | --=/Spikes for Gauntlet [top]/=-- | |
| 349 | ||
| 350 | local cone = Instance.new("Part", gauntParts)
| |
| 351 | cone.Anchored, cone.CanCollide = false, false | |
| 352 | cone.FormFactor = "Custom" | |
| 353 | cone.TopSurface, cone.BottomSurface = "Smooth", "Smooth" | |
| 354 | cone.Color = Color3.new(0, 0, 0) | |
| 355 | cone.Transparency = 0 | |
| 356 | local coneM = Instance.new("FileMesh", cone)
| |
| 357 | coneM.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 358 | coneM.Scale = Vector3.new(0.1, 0.85, 0.06) | |
| 359 | local coneW = Instance.new("Motor", cone)
| |
| 360 | coneW.Part1 = cone | |
| 361 | coneW.Part0 = rrng | |
| 362 | coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0) | |
| 363 | ||
| 364 | local cone2 = Instance.new("Part", gauntParts)
| |
| 365 | cone2.Anchored, cone2.CanCollide = false, false | |
| 366 | cone2.FormFactor = "Custom" | |
| 367 | cone2.TopSurface, cone2.BottomSurface = "Smooth", "Smooth" | |
| 368 | cone2.Color = Color3.new(0, 0, 0) | |
| 369 | cone2.Transparency = 0 | |
| 370 | local cone2M = Instance.new("FileMesh", cone2)
| |
| 371 | cone2M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 372 | cone2M.Scale = Vector3.new(0.1, 0.45, 0.06) | |
| 373 | local cone2W = Instance.new("Motor", cone2)
| |
| 374 | cone2W.Part1 = cone2 | |
| 375 | cone2W.Part0 = rrng | |
| 376 | cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40)) | |
| 377 | ||
| 378 | local cone3 = Instance.new("Part", gauntParts)
| |
| 379 | cone3.Anchored, cone3.CanCollide = false, false | |
| 380 | cone3.FormFactor = "Custom" | |
| 381 | cone3.TopSurface, cone3.BottomSurface = "Smooth", "Smooth" | |
| 382 | cone3.Color = Color3.new(0, 0, 0) | |
| 383 | cone3.Transparency = 0 | |
| 384 | local cone3M = Instance.new("FileMesh", cone3)
| |
| 385 | cone3M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 386 | cone3M.Scale = Vector3.new(0.1, 0.45, 0.06) | |
| 387 | local cone3W = Instance.new("Motor", cone3)
| |
| 388 | cone3W.Part1 = cone3 | |
| 389 | cone3W.Part0 = rrng | |
| 390 | cone3W.C0 = CFrame.new(0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(-40)) | |
| 391 | ||
| 392 | --=/Spikes for Gauntlet [bottom]/=-- | |
| 393 | ||
| 394 | local cone4 = Instance.new("Part", gauntParts)
| |
| 395 | cone4.Anchored, cone4.CanCollide = false, false | |
| 396 | cone4.FormFactor = "Custom" | |
| 397 | cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth" | |
| 398 | cone4.Color = Color3.new(0, 0, 0) | |
| 399 | cone4.Transparency = 0 | |
| 400 | local cone4M = Instance.new("FileMesh", cone4)
| |
| 401 | cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 402 | cone4M.Scale = Vector3.new(0.1, 1, 0.06) | |
| 403 | local cone4W = Instance.new("Motor", cone4)
| |
| 404 | cone4W.Part1 = cone4 | |
| 405 | cone4W.Part0 = rrng | |
| 406 | cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180)) | |
| 407 | ||
| 408 | local cone5 = Instance.new("Part", gauntParts)
| |
| 409 | cone5.Anchored, cone5.CanCollide = false, false | |
| 410 | cone5.FormFactor = "Custom" | |
| 411 | cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth" | |
| 412 | cone5.Color = Color3.new(0, 0, 0) | |
| 413 | cone5.Transparency = 0 | |
| 414 | local cone5M = Instance.new("FileMesh", cone5)
| |
| 415 | cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 416 | cone5M.Scale = Vector3.new(0.1, 0.35, 0.035) | |
| 417 | local cone5W = Instance.new("Motor", cone5)
| |
| 418 | cone5W.Part1 = cone5 | |
| 419 | cone5W.Part0 = rrng | |
| 420 | cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150)) | |
| 421 | ||
| 422 | local cone6 = Instance.new("Part", gauntParts)
| |
| 423 | cone6.Anchored, cone6.CanCollide = false, false | |
| 424 | cone6.FormFactor = "Custom" | |
| 425 | cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth" | |
| 426 | cone6.Color = Color3.new(0, 0, 0) | |
| 427 | cone6.Transparency = 0 | |
| 428 | local cone6M = Instance.new("FileMesh", cone6)
| |
| 429 | cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
| 430 | cone6M.Scale = Vector3.new(0.1, 0.35, 0.035) | |
| 431 | local cone6W = Instance.new("Motor", cone6)
| |
| 432 | cone6W.Part1 = cone6 | |
| 433 | cone6W.Part0 = rrng | |
| 434 | cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150)) | |
| 435 | ||
| 436 | --=/Armband/=-- | |
| 437 | ||
| 438 | local armbnd = Instance.new("Part", gauntParts)
| |
| 439 | armbnd.Anchored, armbnd.CanCollide = false, false | |
| 440 | armbnd.FormFactor = "Custom" | |
| 441 | armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth" | |
| 442 | armbnd.Color = Color3.new(0, 0, 0) | |
| 443 | armbnd.Transparency = 0 | |
| 444 | armbnd.Size = Vector3.new(1.005, 0.3, 1.005) | |
| 445 | local armbndW = Instance.new("Motor", armbnd)
| |
| 446 | armbndW.Part1 = armbnd | |
| 447 | armbndW.Part0 = ra | |
| 448 | armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0) | |
| 449 | ||
| 450 | local armbnd2 = Instance.new("Part", gauntParts)
| |
| 451 | armbnd2.Anchored, armbnd2.CanCollide = false, false | |
| 452 | armbnd2.FormFactor = "Custom" | |
| 453 | armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth" | |
| 454 | armbnd2.Color = Color3.new(0, 0, 0) | |
| 455 | armbnd2.Transparency = 0 | |
| 456 | armbnd2.Size = Vector3.new(1.005, 0.01, 1.005) | |
| 457 | local armbnd2W = Instance.new("Motor", armbnd2)
| |
| 458 | armbnd2W.Part1 = armbnd2 | |
| 459 | armbnd2W.Part0 = armbnd | |
| 460 | armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0) | |
| 461 | ||
| 462 | local armbnd3 = Instance.new("Part", gauntParts)
| |
| 463 | armbnd3.Anchored, armbnd3.CanCollide = false, false | |
| 464 | armbnd3.FormFactor = "Custom" | |
| 465 | armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth" | |
| 466 | armbnd3.Color = Color3.new(0, 0, 0) | |
| 467 | armbnd3.Transparency = 0 | |
| 468 | armbnd3.Size = Vector3.new(1.005, 0.01, 1.005) | |
| 469 | local armbnd3W = Instance.new("Motor", armbnd3)
| |
| 470 | armbnd3W.Part1 = armbnd3 | |
| 471 | armbnd3W.Part0 = armbnd | |
| 472 | armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0) | |
| 473 | ||
| 474 | --[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]-- | |
| 475 | ||
| 476 | --==/BASE VARIABLES/==-- | |
| 477 | sine = 1 | |
| 478 | angle = 0 | |
| 479 | anglespeed = 1 | |
| 480 | local anim = false | |
| 481 | local walking = false | |
| 482 | local sprinting = false | |
| 483 | local magix = false | |
| 484 | local debounce = false | |
| 485 | local magixball = false | |
| 486 | ||
| 487 | mouse.Button1Down:connect(function() | |
| 488 | magixball = true | |
| 489 | if debounce == false and magix == true then | |
| 490 | debounce = true | |
| 491 | coroutine.resume(coroutine.create(function() | |
| 492 | wait(0.3) | |
| 493 | debounce = false | |
| 494 | end)) | |
| 495 | local PorplBall = Instance.new("Part", Char)
| |
| 496 | PorplBall.Archivable = true | |
| 497 | PorplBall.TopSurface = 10 | |
| 498 | PorplBall.BottomSurface = 10 | |
| 499 | PorplBall.CFrame = rrng.CFrame | |
| 500 | PorplBall.Anchored = false | |
| 501 | PorplBall.CanCollide = false | |
| 502 | PorplBall.Size = Vector3.new(1, 1, 1) | |
| 503 | PorplBall.BrickColor = BrickColor.new("Really black")
| |
| 504 | PorplBall.Transparency = 0 | |
| 505 | local PorplBallM = Instance.new("SpecialMesh", PorplBall)
| |
| 506 | PorplBallM.MeshType = "Sphere" | |
| 507 | PorplBallM.Scale = Vector3.new(1, 1, 1) | |
| 508 | local function explode() | |
| 509 | wait() | |
| 510 | PorplBall:Destroy() | |
| 511 | end | |
| 512 | coroutine.resume(coroutine.create(function() | |
| 513 | for i = 1, 125 do wait(0.000000000000001) | |
| 514 | local pmagic = Instance.new("Part", PorplBall)
| |
| 515 | pmagic.FormFactor = "Custom" | |
| 516 | pmagic.Anchored = true | |
| 517 | pmagic.CanCollide = false | |
| 518 | pmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
| 519 | pmagic.TopSurface = 10 | |
| 520 | pmagic.BottomSurface = 10 | |
| 521 | pmagic.LeftSurface = 10 | |
| 522 | pmagic.RightSurface = 10 | |
| 523 | pmagic.FrontSurface = 10 | |
| 524 | pmagic.BackSurface = 10 | |
| 525 | pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
| 526 | pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
| 527 | local lt = Instance.new("PointLight", pmagic)
| |
| 528 | lt.Brightness = 100 | |
| 529 | lt.Range = 5 | |
| 530 | lt.Color = Color3.new(0, 0, 65/100) | |
| 531 | local pmagicM = Instance.new("BlockMesh", pmagic)
| |
| 532 | game:GetService("Debris"):AddItem(pmagic, 0.5)
| |
| 533 | coroutine.wrap(function() | |
| 534 | for i = 1, 10 do | |
| 535 | pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
| 536 | pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0) | |
| 537 | wait() | |
| 538 | end | |
| 539 | end)() | |
| 540 | end | |
| 541 | end)) | |
| 542 | local Velocity = Instance.new("BodyVelocity", PorplBall)
| |
| 543 | Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge | |
| 544 | Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80 | |
| 545 | local ready = false | |
| 546 | PorplBall.Touched:connect(function(part) | |
| 547 | if not part:IsDescendantOf(Char) and ready == false then | |
| 548 | ready = true | |
| 549 | local found = false | |
| 550 | for i,v in pairs (part.Parent:GetChildren()) do | |
| 551 | if v:IsA("Humanoid") or v == Torso or v == Head then
| |
| 552 | found = true | |
| 553 | v.MaxHealth = v.MaxHealth - math.huge | |
| 554 | v.Health = v.Health - math.huge | |
| 555 | end | |
| 556 | end | |
| 557 | Velocity:Destroy() | |
| 558 | PorplBall.Anchored = true | |
| 559 | for i = 0, 1, 0.06 do | |
| 560 | local start = 1 | |
| 561 | local stop = 7 | |
| 562 | PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start)) | |
| 563 | PorplBall.Transparency = i | |
| 564 | wait() | |
| 565 | end | |
| 566 | explode() | |
| 567 | end | |
| 568 | end) | |
| 569 | wait(6.5) | |
| 570 | explode() | |
| 571 | end | |
| 572 | end) | |
| 573 | ||
| 574 | coroutine.resume(coroutine.create(function() | |
| 575 | while wait(0.0000000001) do if magix == true then | |
| 576 | --[[ --==/Lightning Magic/==-- | |
| 577 | lastCF = Torso.Position | |
| 578 | x1 = Instance.new("Part", workspace)
| |
| 579 | x1.Size = Vector3.new(1, 1, 1) | |
| 580 | x1.CanCollide = false | |
| 581 | x1.Anchored = true | |
| 582 | x1.Transparency = 1 | |
| 583 | spawn(function() | |
| 584 | while true do | |
| 585 | wait(-1) | |
| 586 | x1.CFrame = Char.Torso.CFrame * CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))) * CFrame.new(0, 0, 6) | |
| 587 | end | |
| 588 | end) | |
| 589 | for i = 1, math.huge do | |
| 590 | local dist2 = (lastCF-x1.Position).magnitude | |
| 591 | x2 = Instance.new("Part", workspace)
| |
| 592 | x2.Size = Vector3.new(1, 1, 1) | |
| 593 | x2.Material = "Neon" | |
| 594 | x2.BrickColor = BrickColor.new("Really black")
| |
| 595 | x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2) | |
| 596 | x2.CanCollide = false | |
| 597 | x2.Anchored = true | |
| 598 | local m = Instance.new("BlockMesh", x2)
| |
| 599 | m.Scale = Vector3.new(0.5, 0.5, dist2) | |
| 600 | lastCF = x1.Position | |
| 601 | spawn(function() | |
| 602 | for i = 1, 100 do | |
| 603 | x = m.Scale.x/10 | |
| 604 | y = m.Scale.x/10 | |
| 605 | m.Scale = m.Scale-Vector3.new(x, y, 0) | |
| 606 | wait() | |
| 607 | end | |
| 608 | end) | |
| 609 | game.Debris:AddItem(x2, 0.35) | |
| 610 | wait() | |
| 611 | end | |
| 612 | x1:Destroy() | |
| 613 | ]]-- | |
| 614 | --=/Right Arm Magic/=-- | |
| 615 | local ramagic = Instance.new("Part", Char)
| |
| 616 | ramagic.FormFactor = "Custom" | |
| 617 | ramagic.Anchored = true | |
| 618 | ramagic.CanCollide = false | |
| 619 | ramagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
| 620 | ramagic.TopSurface = 10 | |
| 621 | ramagic.BottomSurface = 10 | |
| 622 | ramagic.LeftSurface = 10 | |
| 623 | ramagic.RightSurface = 10 | |
| 624 | ramagic.FrontSurface=10 | |
| 625 | ramagic.BackSurface=10 | |
| 626 | ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
| 627 | ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
| 628 | local lt = Instance.new("PointLight", ramagic)
| |
| 629 | lt.Brightness = 100 | |
| 630 | lt.Range = 5 | |
| 631 | lt.Color = Color3.new(0, 0, 65/100) | |
| 632 | local ramagicM = Instance.new("BlockMesh", ramagic)
| |
| 633 | ||
| 634 | --=/Left Arm Magic/=-- | |
| 635 | local lamagic = Instance.new("Part", Char)
| |
| 636 | lamagic.FormFactor = "Custom" | |
| 637 | lamagic.Anchored = true | |
| 638 | lamagic.CanCollide = false | |
| 639 | lamagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
| 640 | lamagic.TopSurface = 10 | |
| 641 | lamagic.BottomSurface = 10 | |
| 642 | lamagic.LeftSurface = 10 | |
| 643 | lamagic.RightSurface = 10 | |
| 644 | lamagic.FrontSurface=10 | |
| 645 | lamagic.BackSurface=10 | |
| 646 | lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)]) | |
| 647 | lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
| 648 | local lt2 = Instance.new("PointLight", lamagic)
| |
| 649 | lt2.Brightness = 100 | |
| 650 | lt2.Range = 6 | |
| 651 | lt2.Color = Color3.new(0, 0, 65/100) | |
| 652 | local lamagicM = Instance.new("BlockMesh", lamagic)
| |
| 653 | --[[optional | |
| 654 | --=/Right Leg Magic/=-- | |
| 655 | local rlmagic = Instance.new("Part", Char)
| |
| 656 | rlmagic.FormFactor = "Custom" | |
| 657 | rlmagic.Anchored = true | |
| 658 | rlmagic.CanCollide = false | |
| 659 | rlmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
| 660 | rlmagic.TopSurface = 10 | |
| 661 | rlmagic.BottomSurface = 10 | |
| 662 | rlmagic.LeftSurface = 10 | |
| 663 | rlmagic.RightSurface = 10 | |
| 664 | rlmagic.FrontSurface=10 | |
| 665 | rlmagic.BackSurface=10 | |
| 666 | rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
| 667 | rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
| 668 | local lt3 = Instance.new("PointLight", rlmagic)
| |
| 669 | lt3.Brightness = 123123 | |
| 670 | lt3.Range = 6 | |
| 671 | lt3.Color = Color3.new(1, 0, 1) | |
| 672 | local rlmagicM = Instance.new("BlockMesh", rlmagic)
| |
| 673 | ||
| 674 | --=/Left Leg Magic/=-- | |
| 675 | local llmagic = Instance.new("Part", Char)
| |
| 676 | llmagic.FormFactor = "Custom" | |
| 677 | llmagic.Anchored = true | |
| 678 | llmagic.CanCollide = false | |
| 679 | llmagic.Size = Vector3.new(0.7, 0.7, 0.7) | |
| 680 | llmagic.TopSurface = 10 | |
| 681 | llmagic.BottomSurface = 10 | |
| 682 | llmagic.LeftSurface = 10 | |
| 683 | llmagic.RightSurface = 10 | |
| 684 | llmagic.FrontSurface=10 | |
| 685 | llmagic.BackSurface=10 | |
| 686 | llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)]) | |
| 687 | llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
| 688 | local lt4 = Instance.new("PointLight", llmagic)
| |
| 689 | lt4.Brightness = 123123 | |
| 690 | lt4.Range = 6 | |
| 691 | lt4.Color = Color3.new(1, 0, 1) | |
| 692 | local llmagicM = Instance.new("BlockMesh", llmagic)
| |
| 693 | ]] | |
| 694 | game:GetService("Debris"):AddItem(lamagic, 0.85)
| |
| 695 | game:GetService("Debris"):AddItem(ramagic, 0.85)
| |
| 696 | --[[ | |
| 697 | game:GetService("Debris"):AddItem(rlmagic, 0.85)
| |
| 698 | game:GetService("Debris"):AddItem(llmagic, 0.85)
| |
| 699 | ]]-- | |
| 700 | coroutine.wrap(function() | |
| 701 | for i = 1, 10 do | |
| 702 | ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
| 703 | ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0) | |
| 704 | lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
| 705 | lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0) | |
| 706 | --[[ | |
| 707 | rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
| 708 | rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0) | |
| 709 | llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1) | |
| 710 | llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0) | |
| 711 | ]]-- | |
| 712 | wait() | |
| 713 | end | |
| 714 | end)() | |
| 715 | end | |
| 716 | end | |
| 717 | end)) | |
| 718 | ||
| 719 | --[[local bodyg = Instance.new("BodyGyro", Torso)
| |
| 720 | bodyg.MaxTorque = Vector3.new(0, math.huge, 0) | |
| 721 | while true do game:GetService("RunService").RenderStepped:wait()
| |
| 722 | bodyg.CFrame = Camera.CoordinateFrame | |
| 723 | end]]-- | |
| 724 | ||
| 725 | ||
| 726 | mouse.KeyDown:connect(function(key) | |
| 727 | if key == "0" and sprinting == false then | |
| 728 | sprinting = true | |
| 729 | Humanoid.WalkSpeed = 60 | |
| 730 | elseif key == "q" and magix == true then | |
| 731 | magix = false | |
| 732 | for i = 65/255, 1, -0.1 do wait() | |
| 733 | chak.Color = Color3.new(i, i, i) | |
| 734 | end | |
| 735 | elseif key == "q" and magix == false then | |
| 736 | magix = true | |
| 737 | for i = 0, 65/255, 0.1 do wait() | |
| 738 | chak.Color = Color3.new(0, 0, i) | |
| 739 | end | |
| 740 | end | |
| 741 | end) | |
| 742 | ||
| 743 | mouse.KeyUp:connect(function(key) | |
| 744 | - | local Character = game.Players.LocalPlayer.Character --game.Workspace.fefio92142 |
| 744 | + | |
| 745 | sprinting = false | |
| 746 | Humanoid.WalkSpeed = 10 | |
| 747 | end | |
| 748 | end) | |
| 749 | ||
| 750 | --==/GAMEPAD CONTROLS/==-- | |
| 751 | ||
| 752 | game:GetService("UserInputService").InputBegan:connect(function(input)
| |
| 753 | if input.UserInputType == Enum.UserInputType.Gamepad1 then | |
| 754 | if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then | |
| 755 | magix = true | |
| 756 | elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then | |
| 757 | magix = false | |
| 758 | - | local Player = game:service'Players'.LocalPlayer |
| 758 | + | |
| 759 | sprinting = true | |
| 760 | end | |
| 761 | end | |
| 762 | end) | |
| 763 | ||
| 764 | game:GetService("UserInputService").InputEnded:connect(function(input)
| |
| 765 | if input.UserInputType == Enum.UserInputType.Gamepad1 then | |
| 766 | if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then | |
| 767 | sprinting = false | |
| 768 | end | |
| 769 | end | |
| 770 | end) | |
| 771 | ||
| 772 | ||
| 773 | ||
| 774 | game:GetService("RunService").Stepped:connect(function()
| |
| 775 | angle = (angle % 100) + anglespeed/10 | |
| 776 | rootpart.CanCollide = false | |
| 777 | local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude | |
| 778 | if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed < 2 then | |
| 779 | animpose = "Jump" | |
| 780 | ||
| 781 | elseif speed < 2 then -- idle | |
| 782 | animpose = "Idle" | |
| 783 | ||
| 784 | elseif sprinting == true then -- sprinting | |
| 785 | animpose = "Sprinting" | |
| 786 | ||
| 787 | elseif speed > 2 then -- walking | |
| 788 | walking = true | |
| 789 | animpose = "Moving" | |
| 790 | end | |
| 791 | --==/ANIMATION FUNCTIONS/==-- | |
| 792 | if animpose == "Idle" and anim == false then -- idle | |
| 793 | anglespeed = 0.5 | |
| 794 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(5) + math.sin(angle) * 0.02, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1) | |
| 795 | lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, 0.15) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-15) + -math.sin(angle) * 0.02), 0.1) | |
| 796 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -0.4) * CFrame.Angles(math.rad(-20), math.rad(-35), 0), 0.1) | |
| 797 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1) | |
| 798 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(-40), math.sin(angle) * 0.01), 0.1) | |
| 799 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-90), 0, math.rad(220)), 0.1) | |
| 800 | ||
| 801 | elseif animpose == "Moving" and anim == false and walking == true then -- walk | |
| 802 | anglespeed = 0.5 | |
| 803 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1) | |
| 804 | - | local Player = game:service'Players'.LocalPlayer |
| 804 | + | |
| 805 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, -0.3) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1) | |
| 806 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1) | |
| 807 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1) | |
| 808 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-110), -rootpart.RotVelocity.Y/25, math.rad(180)), 0.1) | |
| 809 | Humanoid.WalkSpeed = 6 | |
| 810 | ||
| 811 | elseif animpose == "Sprinting" and anim == false then -- sprint | |
| 812 | anglespeed = 0.5 | |
| 813 | rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1) | |
| 814 | lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1) | |
| 815 | rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1) | |
| 816 | llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1) | |
| 817 | neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1) | |
| 818 | rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-135), -rootpart.RotVelocity.Y/15, math.rad(180)), 0.1) | |
| 819 | Humanoid.WalkSpeed = 40 | |
| 820 | end | |
| 821 | end) | |
| 822 | ||
| 823 | wait(1) | |
| 824 | ------------------------------------------------------------------------------------ | |
| 825 | local Character = owner.Character --game.Workspace.fefio92142 | |
| 826 | ||
| 827 | ||
| 828 | ------------------------------------------------------------------------------------- | |
| 829 | ------------------------------------------------------------------------------------- | |
| 830 | ||
| 831 | local Color = 0,0,0 | |
| 832 | ||
| 833 | local Num = 0.5 | |
| 834 | ||
| 835 | local Num2 = 4 -------------Mods:1,4,8,10,15,20------------------------------------- | |
| 836 | local Size = 0.8 | |
| 837 | local Rate = 300 | |
| 838 | ------------------------------------------------------------------------------------- | |
| 839 | local Player = owner | |
| 840 | local Character = Player.Character | |
| 841 | Torso = Character:WaitForChild'Torso' | |
| 842 | ||
| 843 | local Wing1 = Instance.new("Part",Character)
| |
| 844 | Wing1.FormFactor = Enum.FormFactor.Custom | |
| 845 | Wing1.Size = Vector3.new(.2, .2, .2) | |
| 846 | Wing1.Name = "WIng_1" | |
| 847 | ||
| 848 | local fire = Instance.new("ParticleEmitter", Wing1)
| |
| 849 | fire.VelocitySpread = 0 | |
| 850 | fire.Lifetime = NumberRange.new(2) | |
| 851 | fire.Acceleration = Vector3.new(0, 2, 2) | |
| 852 | - | local Player = game:service'Players'.LocalPlayer |
| 852 | + | |
| 853 | fire.Rate = Rate | |
| 854 | fire.Rotation = NumberRange.new(151515) | |
| 855 | fire.Name = "Fire" | |
| 856 | fire.LightEmission = 0.78 | |
| 857 | fire.LockedToPart = true | |
| 858 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 859 | fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color)) | |
| 860 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 861 | ||
| 862 | local Wing2 = Wing1:Clone() | |
| 863 | Wing2.Parent = Torso | |
| 864 | local x,y,z = 0,-1,-6 | |
| 865 | ||
| 866 | Wld = function(a,b,cf) | |
| 867 | local Weld = Instance.new('Weld',a)
| |
| 868 | Weld.Part0 = a | |
| 869 | Weld.Part1 = b | |
| 870 | Weld.C1 = cf | |
| 871 | return Weld | |
| 872 | end | |
| 873 | ||
| 874 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90))) | |
| 875 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90))) | |
| 876 | ||
| 877 | ||
| 878 | game:service'RunService'.Stepped:connect(function() | |
| 879 | --z = 6+math.sin(tick()*2) | |
| 880 | y = -1+math.sin(tick()*Num)*Num2 | |
| 881 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
| 882 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
| 883 | end) | |
| 884 | ------------------------------------------------------------------------------------------------ | |
| 885 | local Player = owner | |
| 886 | local Character = Player.Character | |
| 887 | Torso = Character:WaitForChild'Torso' | |
| 888 | ||
| 889 | local Wing1 = Instance.new("Part",Character)
| |
| 890 | Wing1.FormFactor = Enum.FormFactor.Custom | |
| 891 | Wing1.Size = Vector3.new(.2, .2, .2) | |
| 892 | Wing1.Name = "WIng_1" | |
| 893 | ||
| 894 | local fire = Instance.new("ParticleEmitter", Wing1)
| |
| 895 | fire.VelocitySpread = 0 | |
| 896 | fire.Lifetime = NumberRange.new(2.5) | |
| 897 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 898 | fire.RotSpeed = NumberRange.new(10) | |
| 899 | fire.Rate = Rate | |
| 900 | - | local Player = game:service'Players'.LocalPlayer |
| 900 | + | |
| 901 | fire.Name = "Fire" | |
| 902 | fire.LightEmission = 0.78 | |
| 903 | fire.LockedToPart = true | |
| 904 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 905 | fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color)) | |
| 906 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 907 | ||
| 908 | local Wing2 = Wing1:Clone() | |
| 909 | Wing2.Parent = Torso | |
| 910 | local x,y,z = 0,-1,-6 | |
| 911 | ||
| 912 | Wld = function(a,b,cf) | |
| 913 | local Weld = Instance.new('Weld',a)
| |
| 914 | Weld.Part0 = a | |
| 915 | Weld.Part1 = b | |
| 916 | Weld.C1 = cf | |
| 917 | return Weld | |
| 918 | end | |
| 919 | ||
| 920 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90))) | |
| 921 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90))) | |
| 922 | ||
| 923 | print'Loaded' | |
| 924 | ||
| 925 | game:service'RunService'.Stepped:connect(function() | |
| 926 | --z = 6+math.sin(tick()*2) | |
| 927 | y = -1+math.sin(tick()*Num)*Num2 | |
| 928 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
| 929 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
| 930 | end) | |
| 931 | ||
| 932 | ------------------------------------------------------------------------------------------------ | |
| 933 | local Player = owner | |
| 934 | local Character = Player.Character | |
| 935 | Torso = Character:WaitForChild'Torso' | |
| 936 | ||
| 937 | local Wing1 = Instance.new("Part",Character)
| |
| 938 | Wing1.FormFactor = Enum.FormFactor.Custom | |
| 939 | Wing1.Size = Vector3.new(.2, .2, .2) | |
| 940 | Wing1.Name = "WIng_1" | |
| 941 | ||
| 942 | local fire = Instance.new("ParticleEmitter", Wing1)
| |
| 943 | fire.VelocitySpread = 0 | |
| 944 | fire.Lifetime = NumberRange.new(2.8) | |
| 945 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 946 | fire.RotSpeed = NumberRange.new(10) | |
| 947 | fire.Rate = Rate | |
| 948 | - | local Player = game:service'Players'.LocalPlayer |
| 948 | + | |
| 949 | fire.Name = "Fire" | |
| 950 | fire.LightEmission = 0.78 | |
| 951 | fire.LockedToPart = true | |
| 952 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 953 | fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color)) | |
| 954 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 955 | ||
| 956 | local Wing2 = Wing1:Clone() | |
| 957 | Wing2.Parent = Torso | |
| 958 | local x,y,z = 0,-1,-6 | |
| 959 | ||
| 960 | Wld = function(a,b,cf) | |
| 961 | local Weld = Instance.new('Weld',a)
| |
| 962 | Weld.Part0 = a | |
| 963 | Weld.Part1 = b | |
| 964 | Weld.C1 = cf | |
| 965 | return Weld | |
| 966 | end | |
| 967 | ||
| 968 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90))) | |
| 969 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90))) | |
| 970 | ||
| 971 | print'Loaded' | |
| 972 | ||
| 973 | game:service'RunService'.Stepped:connect(function() | |
| 974 | --z = 6+math.sin(tick()*2) | |
| 975 | y = -1+math.sin(tick()*Num)*Num2 | |
| 976 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
| 977 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
| 978 | end) | |
| 979 | ||
| 980 | ------------------------------------------------------------------------------------------------ | |
| 981 | local Player = owner | |
| 982 | local Character = Player.Character | |
| 983 | Torso = Character:WaitForChild'Torso' | |
| 984 | ||
| 985 | local Wing1 = Instance.new("Part",Character)
| |
| 986 | Wing1.FormFactor = Enum.FormFactor.Custom | |
| 987 | Wing1.Size = Vector3.new(.2, .2, .2) | |
| 988 | Wing1.Name = "WIng_1" | |
| 989 | ||
| 990 | local fire = Instance.new("ParticleEmitter", Wing1)
| |
| 991 | fire.VelocitySpread = 0 | |
| 992 | fire.Lifetime = NumberRange.new(3) | |
| 993 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 994 | fire.RotSpeed = NumberRange.new(10) | |
| 995 | fire.Rate = Rate | |
| 996 | fire.Rotation = NumberRange.new(151515) | |
| 997 | fire.Name = "Fire" | |
| 998 | fire.LightEmission = 0.78 | |
| 999 | fire.LockedToPart = true | |
| 1000 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1001 | fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color)) | |
| 1002 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1003 | ||
| 1004 | local Wing2 = Wing1:Clone() | |
| 1005 | Wing2.Parent = Torso | |
| 1006 | local x,y,z = 0,-1,-6 | |
| 1007 | ||
| 1008 | Wld = function(a,b,cf) | |
| 1009 | local Weld = Instance.new('Weld',a)
| |
| 1010 | Weld.Part0 = a | |
| 1011 | Weld.Part1 = b | |
| 1012 | Weld.C1 = cf | |
| 1013 | return Weld | |
| 1014 | end | |
| 1015 | ||
| 1016 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90))) | |
| 1017 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90))) | |
| 1018 | ||
| 1019 | print'Loaded' | |
| 1020 | ||
| 1021 | game:service'RunService'.Stepped:connect(function() | |
| 1022 | --z = 6+math.sin(tick()*2) | |
| 1023 | y = -1+math.sin(tick()*Num)*Num2 | |
| 1024 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
| 1025 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
| 1026 | end) | |
| 1027 | ||
| 1028 | ------------------------------------------------------------------------------------------------ | |
| 1029 | local Player = owner | |
| 1030 | local Character = Player.Character | |
| 1031 | Torso = Character:WaitForChild'Torso' | |
| 1032 | ||
| 1033 | local Wing1 = Instance.new("Part",Character)
| |
| 1034 | Wing1.FormFactor = Enum.FormFactor.Custom | |
| 1035 | Wing1.Size = Vector3.new(.2, .2, .2) | |
| 1036 | Wing1.Name = "WIng_1" | |
| 1037 | ||
| 1038 | local fire = Instance.new("ParticleEmitter", Wing1)
| |
| 1039 | fire.VelocitySpread = 0 | |
| 1040 | fire.Lifetime = NumberRange.new(3.1) | |
| 1041 | fire.Acceleration = Vector3.new(0, 4, 4) | |
| 1042 | fire.RotSpeed = NumberRange.new(10) | |
| 1043 | fire.Rate = Rate | |
| 1044 | fire.Rotation = NumberRange.new(151515) | |
| 1045 | fire.Name = "Fire" | |
| 1046 | fire.LightEmission = 0.78 | |
| 1047 | fire.LockedToPart = true | |
| 1048 | fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1049 | fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color)) | |
| 1050 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
| |
| 1051 | ||
| 1052 | local Wing2 = Wing1:Clone() | |
| 1053 | Wing2.Parent = Torso | |
| 1054 | local x,y,z = 0,-1,-6 | |
| 1055 | ||
| 1056 | Wld = function(a,b,cf) | |
| 1057 | local Weld = Instance.new('Weld',a)
| |
| 1058 | Weld.Part0 = a | |
| 1059 | Weld.Part1 = b | |
| 1060 | Weld.C1 = cf | |
| 1061 | return Weld | |
| 1062 | end | |
| 1063 | ||
| 1064 | local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90))) | |
| 1065 | local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90))) | |
| 1066 | ||
| 1067 | print'Loaded' | |
| 1068 | ||
| 1069 | game:service'RunService'.Stepped:connect(function() | |
| 1070 | --z = 6+math.sin(tick()*2) | |
| 1071 | y = -1+math.sin(tick()*Num)*Num2 | |
| 1072 | Wing1.Fire.Acceleration = Vector3.new(x,y,z) | |
| 1073 | Wing2.Fire.Acceleration = Vector3.new(x,y,-z) | |
| 1074 | end) |