Advertisement
idkwhatiam

Easter Bunny

May 5th, 2019
919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 25.07 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3.     script.Parent = owner.Character
  4.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5.     local function NewFakeEvent()
  6.         local Bind = Instance.new("BindableEvent")
  7.         local Fake;Fake = {Connections = {},
  8.         fakeEvent=true;
  9.         Connect=function(self,Func)
  10.             Bind.Event:connect(Func)
  11.             self.Connections[Bind] = true
  12.             return setmetatable({Connected = true},{
  13.             __index = function (self,Index)
  14.                 if Index:lower() == "disconnect" then
  15.                     return function() Fake.Connections[Bind] = false;self.Connected = false end
  16.                 end
  17.                 return Fake[Index]
  18.             end;
  19.             __tostring = function() return "Connection" end;
  20.         })
  21.         end}
  22.         Fake.connect = Fake.Connect;return Fake;
  23.     end
  24.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29.     local function TriggerEvent(self,Event,...)
  30.         local Trigger = Mouse[Event]
  31.         if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32.             for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33.         end
  34.     end
  35.     Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  37.         if FiredBy.Name ~= owner.Name then return end
  38.         if Input.MouseEvent then
  39.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40.         else
  41.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43.             for _,Action in pairs(ContextActionService.Actions) do
  44.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45.             end
  46.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48.         end
  49.     end)
  50.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51.     Event.Parent = NLS([[
  52.         local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53.         local Input = function(Input,gameProcessedEvent)
  54.             if gameProcessedEvent then return end
  55.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56.         end
  57.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58.         local Hit,Target
  59.         while wait(1/30) do
  60.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61.                 Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62.             end
  63.         end
  64.     ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67.     __index = function (self,Index)
  68.         local Sandbox = function (Thing)
  69.             if Thing:IsA("Player") then
  70.                 local RealPlayer = Thing
  71.                 return setmetatable({},{
  72.                     __index = function (self,Index)
  73.                         local Type = type(RealPlayer[Index])
  74.                         if Type == "function" then
  75.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76.                                 return function (self)return InternalData["Mouse"] end
  77.                             end
  78.                             return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79.                         end
  80.                         return RealPlayer[Index]
  81.                     end;
  82.                     __tostring = function(self) return RealPlayer.Name end
  83.                 })
  84.             end
  85.         end
  86.         if RealGame[Index] then
  87.             local Type = type(RealGame[Index])
  88.             if Type == "function" then
  89.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  90.                     return function (self,Service)
  91.                         local FakeServices = {
  92.                             ["players"] = function()
  93.                                 return setmetatable({},{
  94.                                     __index = function (self2,Index2)
  95.                                         local RealService = RealGame:GetService(Service)
  96.                                         local Type2 = type(Index2)
  97.                                         if Type2 == "function" then
  98.                                             return function (self,...) return RealService[Index2](RealService,...)end
  99.                                         else
  100.                                             if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101.                                             return RealService[Index2]
  102.                                         end
  103.                                     end;
  104.                                     __tostring = function(self) return RealGame:GetService(Service).Name end
  105.                                 })
  106.                             end;
  107.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109.                             ["runservice"] = function()
  110.                                 return setmetatable({},{
  111.                                     __index = function(self2,Index2)
  112.                                         local RealService = RealGame:GetService(Service)
  113.                                         local Type2 = type(Index2)
  114.                                         if Type2 == "function" then
  115.                                             return function (self,...) return RealService[Index2](RealService,...) end
  116.                                         else
  117.                                             local RunServices = {
  118.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  120.                                             }
  121.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122.                                             return RealService[Index2]
  123.                                         end
  124.                                     end
  125.                                 })
  126.                             end
  127.                         }
  128.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129.                         return RealGame:GetService(Service)
  130.                     end
  131.                 end
  132.                 return function (self,...) return RealGame[Index](RealGame,...) end
  133.             else
  134.                 if game:GetService(Index) then return game:GetService(Index) end
  135.                 return RealGame[Index]
  136.             end
  137.         end
  138.         return nil
  139.     end
  140.         });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.        
  142.  
  143. --youngmacka123 -- Easter Bunny--
  144.  
  145. --This was only created for easter, no other reason.--
  146. --Please don't leak this. I beg of you.--
  147.  
  148. print("Please don't leak this. I beg of you")
  149. print("Controls:")
  150. print("E = Normal Egg")
  151. print("R = Bomb Egg")
  152.  
  153. --Character--
  154. plr = owner
  155. char = owner.Character
  156. Character = char
  157. Character.Humanoid.Name = "noneofurbusiness"
  158. hum = Character.noneofurbusiness
  159. ws = hum.WalkSpeed
  160. mouse = plr:GetMouse()
  161.  
  162. torso = char["Torso"]
  163. rightarm = char["Right Arm"]
  164. leftarm = char["Left Arm"]
  165. head = char["Head"]
  166. leftleg = char["Left Leg"]
  167. rightleg = char["Right Leg"]
  168.  
  169. --Accessories--
  170. scarf = Instance.new("Part")
  171. scarf.Parent = char
  172. scarf.Name = "DazzlingBunny"
  173. scarf.Position = head.Position
  174. scarf.CanCollide = false
  175. scarfmesh = Instance.new("SpecialMesh")
  176. scarfmesh.Parent = scarf
  177. scarfmesh.MeshId = "rbxassetid://1448222282"
  178. scarfmesh.TextureId = "rbxassetid://1448223356"
  179. scarfweld = Instance.new("Weld")
  180. scarfweld.Parent = scarf
  181. scarfweld.Part0 = scarf
  182. scarfweld.Part1 = head
  183. scarfweld.C0 = CFrame.new(0, -0.95, 0)
  184.  
  185. --Important Things For Animating--
  186.  
  187.  
  188. local hed = char.Head
  189. local root = char.HumanoidRootPart
  190. local rootj = root.RootJoint
  191. local tors = char.Torso
  192. local ra = char["Right Arm"]
  193. local la = char["Left Arm"]
  194. local rl = char["Right Leg"]
  195. local ll = char["Left Leg"]
  196. local neck = tors["Neck"]
  197. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  198. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  199. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  200. local maincolor = BrickColor.new("Institutional white")
  201. local sine = 0
  202. local equipped = false
  203. local idle = 0
  204. local change = 1
  205. local val = 0
  206. local toim = 0
  207. local idleanim = 0.4
  208. local sine = 0
  209. local Sit = 1
  210. cam = game.Workspace.CurrentCamera
  211. CF = CFrame.new
  212. angles = CFrame.Angles
  213. attack = false
  214. Euler = CFrame.fromEulerAnglesXYZ
  215. Rad = math.rad
  216. IT = Instance.new
  217. BrickC = BrickColor.new
  218. Cos = math.cos
  219. Acos = math.acos
  220. Sin = math.sin
  221. Asin = math.asin
  222. Abs = math.abs
  223. Mrandom = math.random
  224. Floor = math.floor
  225. local Player_Size = 1
  226. root.Size = root.Size * Player_Size
  227. tors.Size = tors.Size * Player_Size
  228. hed.Size = hed.Size * Player_Size
  229. ra.Size = ra.Size * Player_Size
  230. la.Size = la.Size * Player_Size
  231. rl.Size = rl.Size * Player_Size
  232. ll.Size = ll.Size * Player_Size
  233.  
  234. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  235. RSH, LSH = nil, nil
  236. RW = Instance.new("Weld")
  237. LW = Instance.new("Weld")
  238. RH = tors["Right Hip"]
  239. LH = tors["Left Hip"]
  240. RSH = tors["Right Shoulder"]
  241. LSH = tors["Left Shoulder"]
  242. RSH.Parent = nil
  243. LSH.Parent = nil
  244. RW.Name = "RW"
  245. RW.Part0 = tors
  246. RW.C0 = CF(1.5, 0.5, 0)
  247. RW.C1 = CF(0, 0.5, 0)
  248. RW.Part1 = ra
  249. RW.Parent = tors
  250. LW.Name = "LW"
  251. LW.Part0 = tors
  252. LW.C0 = CF(-1.5, 0.5, 0)
  253. LW.C1 = CF(0, 0.5, 0)
  254. LW.Part1 = la
  255. LW.Parent = tors
  256. Effects = {}
  257. ----------------------------------------------------------------------------------
  258. rootj.Parent = root
  259. neck.Parent = tors
  260. RW.Parent = tors
  261. LW.Parent = tors
  262. RH.Parent = tors
  263. LH.Parent = tors
  264. ----------------------------------------------------------------------------------
  265. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  266. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  267. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  268. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  269. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  270. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  271. ----------------------------------------------------------------------------------
  272. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  273. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  274. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  275. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  276. --hat.Parent = Character
  277.  
  278. hum.Animator.Parent = nil
  279.  
  280. function swait(num)
  281.     if num == 0 or num == nil then
  282.         game:service("RunService").Stepped:wait(0)
  283.     else
  284.         for i = 0, num do
  285.             game:service("RunService").Stepped:wait(0)
  286.         end
  287.     end
  288. end
  289. function clerp(a, b, t)
  290.     local qa = {
  291.         QuaternionFromCFrame(a)
  292.     }
  293.     local qb = {
  294.         QuaternionFromCFrame(b)
  295.     }
  296.     local ax, ay, az = a.x, a.y, a.z
  297.     local bx, by, bz = b.x, b.y, b.z
  298.     local _t = 1 - t
  299.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  300. end
  301. function QuaternionFromCFrame(cf)
  302.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  303.     local trace = m00 + m11 + m22
  304.     if trace > 0 then
  305.         local s = math.sqrt(1 + trace)
  306.         local recip = 0.5 / s
  307.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  308.     else
  309.         local i = 0
  310.         if m00 < m11 then
  311.             i = 1
  312.         end
  313.         if m22 > (i == 0 and m00 or m11) then
  314.             i = 2
  315.         end
  316.         if i == 0 then
  317.             local s = math.sqrt(m00 - m11 - m22 + 1)
  318.             local recip = 0.5 / s
  319.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  320.         elseif i == 1 then
  321.             local s = math.sqrt(m11 - m22 - m00 + 1)
  322.             local recip = 0.5 / s
  323.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  324.         elseif i == 2 then
  325.             local s = math.sqrt(m22 - m00 - m11 + 1)
  326.             local recip = 0.5 / s
  327.             return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  328.         end
  329.     end
  330. end
  331. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  332.     local xs, ys, zs = x + x, y + y, z + z
  333.     local wx, wy, wz = w * xs, w * ys, w * zs
  334.     local xx = x * xs
  335.     local xy = x * ys
  336.     local xz = x * zs
  337.     local yy = y * ys
  338.     local yz = y * zs
  339.     local zz = z * zs
  340.     return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  341. end
  342. function QuaternionSlerp(a, b, t)
  343.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  344.     local startInterp, finishInterp
  345.     if cosTheta >= 1.0E-4 then
  346.         if 1 - cosTheta > 1.0E-4 then
  347.             local theta = math.acos(cosTheta)
  348.             local invSinTheta = 1 / Sin(theta)
  349.             startInterp = Sin((1 - t) * theta) * invSinTheta
  350.             finishInterp = Sin(t * theta) * invSinTheta
  351.         else
  352.             startInterp = 1 - t
  353.             finishInterp = t
  354.         end
  355.     elseif 1 + cosTheta > 1.0E-4 then
  356.         local theta = math.acos(-cosTheta)
  357.         local invSinTheta = 1 / Sin(theta)
  358.         startInterp = Sin((t - 1) * theta) * invSinTheta
  359.         finishInterp = Sin(t * theta) * invSinTheta
  360.     else
  361.         startInterp = t - 1
  362.         finishInterp = t
  363.     end
  364.     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
  365. end
  366. function rayCast(Position, Direction, Range, Ignore)
  367.     return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  368. end
  369. local RbxUtility = LoadLibrary("RbxUtility")
  370. local Create = RbxUtility.Create
  371.  
  372. ArtificialHB = Instance.new("BindableEvent", script)
  373. ArtificialHB.Name = "Heartbeat"
  374. script:WaitForChild("Heartbeat")
  375.  
  376. frame = 1 / 60
  377. tf = 0
  378. allowframeloss = false
  379. tossremainder = false
  380.  
  381.  
  382. lastframe = tick()
  383. script.Heartbeat:Fire()
  384.  
  385.  
  386. game:GetService("RunService").Heartbeat:connect(function(s, p)
  387.     tf = tf + s
  388.     if tf >= frame then
  389.         if allowframeloss then
  390.             script.Heartbeat:Fire()
  391.             lastframe = tick()
  392.         else
  393.             for i = 1, math.floor(tf / frame) do
  394.                 script.Heartbeat:Fire()
  395.             end
  396.             lastframe = tick()
  397.         end
  398.         if tossremainder then
  399.             tf = 0
  400.         else
  401.             tf = tf - frame * math.floor(tf / frame)
  402.         end
  403.     end
  404. end)
  405.  
  406. --Attacks--
  407.  
  408. mouse.KeyDown:Connect(function(Press)
  409.     Press=Press:lower()
  410.     if Press=="e" then
  411.         egg = Instance.new("Part")
  412.         egg.Size = Vector3.new(1.718, 2.256, 1.718)
  413.         egg.Parent = workspace
  414.         egg.Name = "EasterEgg"
  415.         egg.Position = torso.Position + Vector3.new(2, 5, 2)
  416.         egg.CanCollide = true
  417.         egg.Anchored = false
  418.         egg.BrickColor = BrickColor.new("Institutional white") or BrickColor.new("Bright yellow") or BrickColor.new("Light orange") or BrickColor.new("Light blue")
  419.         megg = Instance.new("SpecialMesh")
  420.         megg.Parent = egg
  421.         megg.MeshId = "rbxassetid://1425406840"
  422.     end
  423. end)
  424.  
  425. bombing = false
  426.  
  427. mouse.KeyDown:Connect(function(Press)
  428.     Press=Press:lower()
  429.     if Press=="r" and bombing==false then
  430.         bombing = true
  431.         bomb = Instance.new("Part")
  432.         bomb.Size = Vector3.new(1.718, 2.256, 1.718)
  433.         bomb.Parent = workspace
  434.         bomb.Name = "EasterEgg"
  435.         bomb.Position = torso.Position + Vector3.new(2, 5, 2)
  436.         bomb.CanCollide = true
  437.         bomb.Anchored = false
  438.         bomb.BrickColor = BrickColor.new("Really red")
  439.         mbomb = Instance.new("SpecialMesh")
  440.         mbomb.Parent = bomb
  441.         mbomb.MeshId = "rbxassetid://1425406840"
  442.         wait(0.5)
  443.         bomb.BrickColor = BrickColor.new("Really black")
  444.         wait(0.5)
  445.         bomb.BrickColor = BrickColor.new("Really red")
  446.         wait(0.5)
  447.         bomb.BrickColor = BrickColor.new("Really black")
  448.         wait(0.5)
  449.         bomb.BrickColor = BrickColor.new("Really red")
  450.         wait(0.5)
  451.         bomb.BrickColor = BrickColor.new("Really black")
  452.         wait(0.5)
  453.         bomb.BrickColor = BrickColor.new("Really red")
  454.         wait(0.5)
  455.         bomb.BrickColor = BrickColor.new("Really black")
  456.         wait(0.5)
  457.         bomb.BrickColor = BrickColor.new("Really red")
  458.         wait(0.5)
  459.         bomb.Transparency = 1
  460.         bomb.Anchored = true
  461.         bomb.CanCollide = false
  462.         ex = Instance.new("Part")
  463.         ex.Parent = bomb
  464.         ex.Shape = "Ball"
  465.         ex.CanCollide = false
  466.         ex.Material = "Neon"
  467.         ex.Size = Vector3.new(1, 1, 1)
  468.         ex.Anchored = true
  469.         ex.Position = bomb.Position
  470.         ex.BrickColor = BrickColor.new("Really red")
  471.         ex.Touched:connect(function(hit)
  472.             hit.Parent:Destroy()
  473.         end)
  474.         wait(0.05)
  475.         ex.Size = Vector3.new(2, 2, 2)
  476.         wait(0.05)
  477.         ex.Size = Vector3.new(3, 3, 3)
  478.         wait(0.05)
  479.         ex.Size = Vector3.new(4, 4, 4)
  480.         wait(0.05)
  481.         ex.Size = Vector3.new(5, 5, 5)
  482.         wait(0.05)
  483.         ex.Size = Vector3.new(5, 5, 5)
  484.         wait(0.05)
  485.         ex.Size = Vector3.new(4, 4, 4)
  486.         wait(0.05)
  487.         ex.Size = Vector3.new(3, 3, 3)
  488.         wait(0.05)
  489.         ex.Size = Vector3.new(2, 2, 2)
  490.         wait(0.05)
  491.         ex.Size = Vector3.new(1, 1, 1)
  492.         bomb:Destroy()
  493.         wait(0.05)
  494.         ex:Destroy()
  495.         bombing = false
  496.     end
  497. end)
  498.  
  499. --Nametag--
  500.  
  501. sur = Instance.new("BillboardGui", char.Head)
  502. sur.Name = "Billboard"
  503. sur.Adornee = char.Head
  504. sur.Size = UDim2.new(10, 0, 5, 0)
  505. sur.StudsOffset = Vector3.new(0, 5, 0)
  506. text = Instance.new("TextLabel", sur)
  507. text.Text = plr.Name ..", The Easter Bunny"
  508. text.Size = UDim2.new(1, 0, 1, 0)
  509. text.TextScaled = true
  510. text.BackgroundTransparency = 1
  511. text.Font = Enum.Font.Arcade
  512. text.TextColor3 = Color3.new(100, 1, 1)
  513. text.TextStrokeTransparency = 0.5
  514.  
  515. --Animations--
  516.  
  517. print("By youngmacka123")
  518. while true do
  519.     swait()
  520.     sine = sine + change
  521.     local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  522.     local velderp = root.Velocity.y
  523.     hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  524.     if equipped == true or equipped == false then
  525.         if attack == false then
  526.             idle = idle + 1
  527.         else
  528.             idle = 0
  529.         end
  530.         if 1 < root.Velocity.y and hitfloor == nil then
  531.             Anim = "Jump"
  532.             if attack == false then
  533.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  534.                 neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  535.                 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  536.                 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  537.                 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  538.                 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  539.             end
  540.         elseif -1 > root.Velocity.y and hitfloor == nil then
  541.             Anim = "Fall"
  542.             if attack == false then
  543.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  544.                 neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  545.                 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  546.                 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  547.                 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  548.                 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  549.             end
  550.         elseif torvel < 1 and hitfloor ~= nil then
  551.             Anim = "Idle"
  552.             change = 1
  553.             if attack == false then
  554.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  555.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3)
  556.                 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  557.                 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  558.                 RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(-0.5), Rad(-.6), Rad(-56)), 0.1)
  559.                 LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(-0.5), Rad(-.6), Rad(56)), 0.1)
  560.             end
  561.         elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  562.             Anim = "Walk"
  563.             change = 1.1
  564.             if attack == false then
  565.                 rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  566.                 tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  567.                 RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size)  * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  568.                 LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  569.                 RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.3 + 0 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(37)  * Cos(sine / 7) , Rad(8 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1)
  570.                 LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.3 + 0 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37)  * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) ,   Rad(-6) + la.RotVelocity.Y / 75), 0.1)
  571.             end
  572.         elseif torvel >= 25 and hitfloor ~= nil then
  573.             Anim = "Sprint"
  574.             change = 1.35
  575.             if attack == false then
  576.             rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  577.             tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  578.             RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  579.             LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  580.             RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110)  * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  581.             LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110)  * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  582.             end
  583.         end
  584.     end
  585.  
  586.                    
  587.                
  588.            
  589.        
  590.    
  591. end
  592.  
  593. --END OF SCRIPT--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement