Advertisement
Infintyboy

the michael rosen rap

Sep 15th, 2018
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 57.17 KB | None | 0 0
  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,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5.     local rp = RealPlayer
  6.     script.Parent = rp.Character
  7.    
  8.     --RemoteEvent for communicating
  9.     local Event = Instance.new("RemoteEvent")
  10.     Event.Name = "UserInput_Event"
  11.  
  12.     --Fake event to make stuff like Mouse.KeyDown work
  13.     local function fakeEvent()
  14.         local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  15.         t.connect = t.Connect
  16.         return t
  17.     end
  18.  
  19.     --Creating fake input objects with fake variables
  20.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24.     end}
  25.     --Merged 2 functions into one by checking amount of arguments
  26.     CAS.UnbindAction = CAS.BindAction
  27.  
  28.     --This function will trigger the events that have been :Connect()'ed
  29.     local function te(self,ev,...)
  30.         local t = m[ev]
  31.         if t and t._fakeEvent then
  32.             for _,f in pairs(t.Functions) do
  33.                 f(...)
  34.             end
  35.         end
  36.     end
  37.     m.TrigEvent = te
  38.     UIS.TrigEvent = te
  39.  
  40.     Event.OnServerEvent:Connect(function(plr,io)
  41.         if plr~=rp then return end
  42.         m.Target = io.Target
  43.         m.Hit = io.Hit
  44.         if not io.isMouse then
  45.             local b = io.UserInputState == Enum.UserInputState.Begin
  46.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48.             end
  49.             for _,t in pairs(CAS.Actions) do
  50.                 for _,k in pairs(t.Keys) do
  51.                     if k==io.KeyCode then
  52.                         t.Function(t.Name,io.UserInputState,io)
  53.                     end
  54.                 end
  55.             end
  56.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58.         end
  59.     end)
  60.     Event.Parent = NLS([==[
  61.     local Player = game:GetService("Players").LocalPlayer
  62.     local Event = script:WaitForChild("UserInput_Event")
  63.  
  64.     local Mouse = Player:GetMouse()
  65.     local UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  73.  
  74.     local h,t
  75.     --Give the server mouse data 30 times every second, but only if the values changed
  76.     --If player is not moving their mouse, client won't fire events
  77.     while wait(1/30) do
  78.         if h~=Mouse.Hit or t~=Mouse.Target then
  79.             h,t=Mouse.Hit,Mouse.Target
  80.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  81.         end
  82.     end]==],Player.Character)
  83.  
  84.     ----Sandboxed game object that allows the usage of client-side methods and services
  85.     --Real game object
  86.     local _rg = game
  87.  
  88.     --Metatable for fake service
  89.     local fsmt = {
  90.         __index = function(self,k)
  91.             local s = rawget(self,"_RealService")
  92.             if s then return s[k] end
  93.         end,
  94.         __newindex = function(self,k,v)
  95.             local s = rawget(self,"_RealService")
  96.             if s then s[k]=v end
  97.         end,
  98.         __call = function(self,...)
  99.             local s = rawget(self,"_RealService")
  100.             if s then return s(...) end
  101.         end
  102.     }
  103.     local function FakeService(t,RealService)
  104.         t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  105.         return setmetatable(t,fsmt)
  106.     end
  107.  
  108.     --Fake game object
  109.     local g = {
  110.         GetService = function(self,s)
  111.             return self[s]
  112.         end,
  113.         Players = FakeService({
  114.             LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  115.         },"Players"),
  116.         UserInputService = FakeService(UIS,"UserInputService"),
  117.         ContextActionService = FakeService(CAS,"ContextActionService"),
  118.     }
  119.     rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  120.     g.service = g.GetService
  121.    
  122.     g.RunService = FakeService({
  123.         RenderStepped = _rg:GetService("RunService").Heartbeat,
  124.         BindToRenderStep = function(self,name,_,fun)
  125.  
  126.         end,
  127.         UnbindFromRenderStep = function(self,name)
  128.             self._btrs[name]:Disconnect()
  129.         end,
  130.     },"RunService")
  131.  
  132.     setmetatable(g,{
  133.         __index=function(self,s)
  134.             return _rg:GetService(s) or typeof(_rg[s])=="function"
  135.             and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  136.         end,
  137.         __newindex = fsmt.__newindex,
  138.         __call = fsmt.__call
  139.     })
  140.     --Changing owner to fake player object to support owner:GetMouse()
  141.     game,owner = g,g.Players.LocalPlayer
  142. end
  143.  
  144. Rosen = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  145. Rosen.Visible = false
  146. local nel = game.Players.LocalPlayer.Character.Humanoid
  147. nel.MaxHealth = math.huge
  148. Player = game:GetService("Players").LocalPlayer
  149. PlayerGui = Player.PlayerGui
  150. Cam = workspace.CurrentCamera
  151. Backpack = Player.Backpack
  152. Character = Player.Character
  153. Humanoid = Character.Humanoid
  154. local Player = game.Players.localPlayer
  155. local Character = Player.Character
  156. local plr = game:service'Players'.LocalPlayer
  157. local char = plr.Character
  158. local tors = char.Torso
  159. spy = false
  160. CF = CFrame.new
  161. angles = CFrame.Angles
  162. attack = false
  163. timetofly = true
  164. Euler = CFrame.fromEulerAnglesXYZ
  165. Rad = math.rad
  166. IT = Instance.new
  167. BrickC = BrickColor.new
  168. Cos = math.cos
  169. Acos = math.acos
  170. Sin = math.sin
  171. Asin = math.asin
  172. Abs = math.abs
  173. Mrandom = math.random
  174. Floor = math.floor
  175. random = math.random
  176. radian = math.rad
  177. Vec3 = Vector3.new
  178. cFrame = CFrame.new
  179. Euler = CFrame.fromEulerAnglesXYZ
  180. local Humanoid = Character.Humanoid
  181. local hum = char.Humanoid
  182. local ra = char["Right Arm"]
  183. local la= char["Left Arm"]
  184. local rl= char["Right Leg"]
  185. local ll = char["Left Leg"]
  186. local hed = char.Head
  187. local root = char.HumanoidRootPart
  188. local rootj = root.RootJoint
  189. local mouse = plr:GetMouse()
  190. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  191. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  192. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  193. local cam = game.Workspace.CurrentCamera
  194. trazx = Instance.new("ParticleEmitter")
  195. c = game.Players.LocalPlayer.Character
  196. Mouse = Player:GetMouse()
  197. RootPart = Character["HumanoidRootPart"]
  198. Torso = Character["Torso"]
  199. local Torso = Character["Torso"]
  200. Head = Character["Head"]
  201. RightArm = Character["Right Arm"]
  202. LeftArm = Character["Left Arm"]
  203. RightLeg = Character["Right Leg"]
  204. LeftLeg = Character["Left Leg"]
  205. RootJoint = RootPart["RootJoint"]
  206. Neck = Torso["Neck"]
  207. RightShoulder = Torso["Right Shoulder"]
  208. LeftShoulder = Torso["Left Shoulder"]
  209. RightHip = Torso["Right Hip"]
  210. LeftHip = Torso["Left Hip"]
  211. local Player = game.Players.localPlayer
  212. local Character = Player.Character
  213. local char = Player.Character
  214. local hum = char.Humanoid
  215. local Humanoid = char.Humanoid
  216. local humanoid = char.Humanoid
  217. local sound = Instance.new("Sound")
  218. sound.SoundId = "http://www.roblox.com/asset/?id=1801250637"
  219. sound.Parent = Character
  220. sound.Volume = 7
  221. sound.Looped = true
  222. sound:Play()
  223. attack = false
  224. --Animations--
  225. local model = game:GetService("Players").LocalPlayer.Character
  226. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  227. local Torso = model.Torso
  228. local RS = Torso:FindFirstChild("Right Shoulder")
  229. local LS = Torso:FindFirstChild("Left Shoulder")
  230. local RH = Torso:FindFirstChild("Right Hip")
  231. local LH = Torso:FindFirstChild("Left Hip")
  232. local Neck = Torso:FindFirstChild("Neck")
  233. local Torso = model.Torso
  234. local Head = model.Head
  235. local Humanoid = model.Humanoid
  236. local LeftArm = model["Left Arm"]
  237. local LeftLeg = model["Left Leg"]
  238. local RightArm = model["Right Arm"]
  239. local RightLeg = model["Right Leg"]
  240. local RootPart = model.HumanoidRootPart
  241. local attack = false
  242. local idle = 0
  243. local Gen = "Boy"
  244. local ToolMode = 1
  245. local sprintmode=false
  246. local jp = 50
  247. local ws = 6
  248. local inAir=true
  249. local inAir2=true
  250. local equipped = true
  251. local MoveTH = true
  252. local MoveArms = true
  253. local MoveLegs = true
  254. local toolAon = false
  255. local stopTA = false
  256. local sine = 0
  257. local change = 1
  258. local toolAnim = "None"
  259. local toolAnimTime = 0
  260. local Anim="Idle"
  261. local RJ = model.HumanoidRootPart:FindFirstChild("RootJoint")
  262. local cn = CFrame.new
  263. local cf = CFrame.new
  264. local ca2 = CFrame.Angles
  265. local mf = math.floor
  266. local RbxUtility = LoadLibrary("RbxUtility")
  267. local Create = RbxUtility.Create
  268. local canstoptuant1 = false
  269. local stoptuant1 = false
  270. local MenyOpen = false
  271. function swait(num)
  272.     if num == 0 or num == nil then
  273.         game:service'RunService'.RenderStepped:wait(0)
  274.     else
  275.         for i = 0, num do
  276.             game:service'RunService'.RenderStepped:wait(0)
  277.         end
  278.     end
  279. end
  280.  
  281. function stopAnimations()
  282.     coroutine.resume(coroutine.create(function()
  283.     model.Animate:Destroy()
  284.     end))
  285.     coroutine.resume(coroutine.create(function()
  286.     for _,v in pairs(Humanoid:GetPlayingAnimationTracks()) do
  287.         v:Stop()
  288.        
  289.     end
  290. end))
  291. end
  292.  
  293. function clerp(a, b, t)
  294.     local qa = {
  295.         QuaternionFromCFrame(a)
  296.     }
  297.     local qb = {
  298.         QuaternionFromCFrame(b)
  299.     }
  300.     local ax, ay, az = a.x, a.y, a.z
  301.     local bx, by, bz = b.x, b.y, b.z
  302.     local _t = 1 - t
  303.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  304. end
  305.  
  306. function QuaternionFromCFrame(cf)
  307.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  308.     local trace = m00 + m11 + m22
  309.     if trace > 0 then
  310.         local s = math.sqrt(1 + trace)
  311.         local recip = 0.5 / s
  312.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  313.     else
  314.         local i = 0
  315.         if m00 < m11 then
  316.             i = 1
  317.         end
  318.         if m22 > (i == 0 and m00 or m11) then
  319.             i = 2
  320.         end
  321.         if i == 0 then
  322.             local s = math.sqrt(m00 - m11 - m22 + 1)
  323.             local recip = 0.5 / s
  324.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  325.         elseif i == 1 then
  326.             local s = math.sqrt(m11 - m22 - m00 + 1)
  327.             local recip = 0.5 / s
  328.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  329.         elseif i == 2 then
  330.             local s = math.sqrt(m22 - m00 - m11 + 1)
  331.             local recip = 0.5 / s
  332.             return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  333.         end
  334.     end
  335. end
  336. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  337.     local xs, ys, zs = x + x, y + y, z + z
  338.     local wx, wy, wz = w * xs, w * ys, w * zs
  339.     local xx = x * xs
  340.     local xy = x * ys
  341.     local xz = x * zs
  342.     local yy = y * ys
  343.     local yz = y * zs
  344.     local zz = z * zs
  345.     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))
  346. end
  347. function QuaternionSlerp(a, b, t)
  348.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  349.     local startInterp, finishInterp
  350.     if cosTheta >= 1.0E-4 then
  351.         if 1 - cosTheta > 1.0E-4 then
  352.             local theta = math.acos(cosTheta)
  353.             local invSinTheta = 1 / Sin(theta)
  354.             startInterp = Sin((1 - t) * theta) * invSinTheta
  355.             finishInterp = Sin(t * theta) * invSinTheta
  356.         else
  357.             startInterp = 1 - t
  358.             finishInterp = t
  359.         end
  360.     elseif 1 + cosTheta > 1.0E-4 then
  361.         local theta = math.acos(-cosTheta)
  362.         local invSinTheta = 1 / Sin(theta)
  363.         startInterp = Sin((t - 1) * theta) * invSinTheta
  364.         finishInterp = Sin(t * theta) * invSinTheta
  365.     else
  366.         startInterp = t - 1
  367.         finishInterp = t
  368.     end
  369.     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
  370. end
  371. function rayCast(Position, Direction, Range, Ignore)
  372.     return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  373. end
  374. local RbxUtility = LoadLibrary("RbxUtility")
  375. local Create = RbxUtility.Create
  376.  
  377. stopAnimations()
  378. wait(.1)
  379.  
  380. rayCast = function(Pos, Dir, Max, Ignore)
  381.  
  382.   return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  383. end
  384. RS.C1 = cn(0, 0.5, 0)
  385. LS.C1 = cn(0, 0.5, 0)
  386. RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  387. LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  388. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  389. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  390. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  391. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  392.  
  393.  
  394.  
  395.  
  396.  
  397. function RemoveOutlines(part)
  398.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  399. end
  400.    
  401.  
  402.     CFuncs = {
  403. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  404.    
  405.     local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  406.     RemoveOutlines(Part)
  407.     return Part
  408. end
  409. }
  410. ,
  411. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  412.    
  413.     local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  414.     if Mesh == "SpecialMesh" then
  415.         Msh.MeshType = MeshType
  416.         Msh.MeshId = MeshId
  417.     end
  418.     return Msh
  419. end
  420. }
  421. ,
  422. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  423.    
  424.     local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  425.     if Mesh == "SpecialMesh" then
  426.         Msh.MeshType = MeshType
  427.         Msh.MeshId = MeshId
  428.     end
  429.     return Msh
  430. end
  431. }
  432. ,
  433. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  434.    
  435.     local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  436.     return Weld
  437. end
  438. }
  439. ,
  440. Sound = {Create = function(id, par, vol, pit)
  441.    
  442.     coroutine.resume(coroutine.create(function()
  443.        
  444.         local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId  = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
  445.         wait()
  446.         S:play()
  447.         game:GetService("Debris"):AddItem(S, 6)
  448.     end
  449. ))
  450. end
  451. }
  452. ,
  453.  
  454. Sound2 = {Create = function(id, par, vol, pit, SoundTime)
  455.    
  456.     coroutine.resume(coroutine.create(function()
  457.        
  458.         local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId  = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
  459.         wait()
  460.         S:play()
  461.         game:GetService("Debris"):AddItem(S, SoundTime)
  462.     end
  463. ))
  464. end
  465. }
  466. ,
  467. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  468.    
  469.     local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  470.     return fp
  471. end
  472. }
  473. }
  474.  
  475. so = function(id, par, vol, pit, AlTime)
  476.  
  477. if AlTime ~= nil then
  478.  
  479. CFuncs.Sound2.Create(id, par, vol, pit, AlTime)
  480.  
  481. else
  482. CFuncs.Sound.Create(id, par, vol, pit)
  483. end
  484.  
  485. end
  486.  
  487.  
  488.  
  489. local ParticEffect1 = Create("ParticleEmitter"){
  490. Color = ColorSequence.new(Color3.new (0, 1, 0), Color3.new (0, 0, 0)),
  491. Transparency =  NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.2,0),NumberSequenceKeypoint.new(1,1)}),
  492. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.15),NumberSequenceKeypoint.new(0.5,.01),NumberSequenceKeypoint.new(1,0)}),
  493. Texture = "rbxassetid://596872069",
  494. Lifetime = NumberRange.new(0.8),
  495. Rate = 100,
  496. VelocitySpread = 360,
  497. RotSpeed = NumberRange.new(-100,100),
  498. Speed = NumberRange.new(2),
  499. LightEmission = 1,
  500. LockedToPart = false,
  501. Acceleration = Vector3.new(0, -5, 0),
  502. EmissionDirection = "Back",
  503.  
  504. }  
  505.  
  506. --[[
  507. fat = Instance.new("BindableEvent", script)
  508. fat.Name = "Heartbeat"
  509. script:WaitForChild("Heartbeat")
  510. frame = 1/30
  511. tf = 0
  512. allowframeloss = false
  513. tossremainder = false
  514. lastframe = tick()
  515. script.Heartbeat:Fire()
  516. game:GetService("RunService").Heartbeat:connect(function(s, p)
  517.  
  518.   tf = tf + s
  519.   if frame <= tf then
  520.     if allowframeloss then
  521.       script.Heartbeat:Fire()
  522.       lastframe = tick()
  523.     else
  524.       for i = 1, math.floor(tf / frame) do
  525.         script.Heartbeat:Fire()
  526.       end
  527.       lastframe = tick()
  528.     end
  529.     if tossremainder then
  530.       tf = 0
  531.     else
  532.       tf = tf - frame * math.floor(tf / frame)
  533.     end
  534.   end
  535. end
  536. )
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552. --]]
  553.  
  554. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, true)
  555.  
  556.  
  557. for i = 1,3,.1 do
  558.     swait()
  559. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),1)
  560. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, 0, -0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),1)
  561. RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-0)),1)
  562. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),1)
  563. RH.C0 = RH.C0:lerp(CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-0),math.rad(0),math.rad(0)),1)
  564. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-0),math.rad(0),math.rad(0)),1)
  565.  
  566.  
  567.  
  568. end
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581. function JumpAfterEffect()
  582.     if attack == false then
  583.     attack = true
  584.  
  585. if RootPart.Velocity.y < -65  then
  586. Humanoid.WalkSpeed= 0
  587. Humanoid.JumpPower= 0  
  588. for i = 1,3,.1 do
  589.     swait()
  590. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(25-3 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.1)
  591. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, .3, -.8 +-.05 * math.cos(sine / 15.5)) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  592. RS.C0 = RS.C0:lerp(CFrame.new(1.4, .7- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(25),math.rad(0),math.rad(20)),.1)
  593. LS.C0 = LS.C0:lerp(CFrame.new(-1.4, .7- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(25),math.rad(0),math.rad(-20)),.1)
  594. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.15+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  595. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.15+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  596.  
  597. end
  598.  
  599. else
  600. if sprintmode == true then
  601. Humanoid.WalkSpeed= 10
  602. else
  603. Humanoid.WalkSpeed= 3
  604. end
  605. Humanoid.JumpPower= 0  
  606. for i = 1,2,.1 do
  607.     swait()
  608. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(25-3 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.1)
  609. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, .3, -.6 +-.05 * math.cos(sine / 15.5)) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.2)
  610. RS.C0 = RS.C0:lerp(CFrame.new(1.4, .7- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(25),math.rad(0),math.rad(20)),.1)
  611. LS.C0 = LS.C0:lerp(CFrame.new(-1.4, .7- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(25),math.rad(0),math.rad(-20)),.1)
  612. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.65+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  613. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.65+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  614.  
  615. end
  616.  
  617. end
  618. attack = false
  619. end
  620. end
  621.  
  622.  
  623.  
  624. function SlashAnim()
  625.     if toolAon == false then
  626.     toolAon= true
  627.     MoveArms = false
  628. for i = 1,2,.1 do
  629.     if stopTA == false then
  630.     swait()
  631.         RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.8- .03 * math.cos(sine / 20), -.2) * CFrame.Angles(math.rad(160- 1 * math.cos(sine / 20)),math.rad(-10),math.rad(5- 1 * math.cos(sine / 20))),.2)
  632.     end
  633.    
  634.        
  635.    
  636. end
  637.  
  638. for i = 1,3,.1 do
  639.     if stopTA == false then
  640.     swait()
  641.         RS.C0 = RS.C0:lerp(CFrame.new(1.3, 0.3- .03 * math.cos(sine / 20), -.2) * CFrame.Angles(math.rad(0- 1 * math.cos(sine / 20)),math.rad(10),math.rad(-20- 1 * math.cos(sine / 20))),.5)
  642.    
  643.     end
  644.    
  645.    
  646. end
  647.  
  648. toolAnim = "None"
  649. toolAon = false
  650.  
  651.  
  652.     end
  653. end
  654.  
  655.  
  656.  
  657. function LungeAnim()
  658.  stopTA = true
  659. MoveArms = false         
  660.    
  661.     swait(10)
  662.     if toolAon == false then
  663.  
  664.     toolAon= true
  665.    
  666. for i = 1,3,.1 do
  667. toolAon= true
  668.  
  669.     swait()    
  670.         RS.C0 = RS.C0:lerp(CFrame.new(1.4, 0.7- .03 * math.cos(sine / 20), -.2) * CFrame.Angles(math.rad(170- 1 * math.cos(sine / 20)),math.rad(0),math.rad(0- 1 * math.cos(sine / 20))),.1)
  671.    
  672.    
  673.        
  674.    
  675. end
  676.  
  677. for i = 1,2,.1 do
  678.     swait()
  679.         RS.C0 = RS.C0:lerp(CFrame.new(1.4, 0.5- .03 * math.cos(sine / 20), -.2) * CFrame.Angles(math.rad(30- 1 * math.cos(sine / 20)),math.rad(10),math.rad(-20- 1 * math.cos(sine / 20))),.2)
  680.    
  681.    
  682.     toolAon= true  
  683.    
  684. end
  685.  
  686.  
  687. toolAnim = "None"
  688. toolAon = false
  689. stopTA = false
  690.     end
  691. end
  692.  
  693.  
  694.  
  695.  
  696. function getTool() 
  697.     for _, kid in ipairs(model:GetChildren()) do
  698.         if kid.className == "Tool" then return kid end
  699.     end
  700.     return nil
  701. end
  702. function getToolAnim(tool)
  703.     for _, c in ipairs(tool:GetChildren()) do
  704.         if c.Name == "toolanim" and c.className == "StringValue" then
  705.             return c
  706.         end
  707.     end
  708.     return nil
  709. end
  710. function animateTool()
  711.    
  712.     if (toolAnim == "None") then
  713.         if ToolMode == 1 then
  714.         RS.C0 = RS.C0:lerp(CFrame.new(1.4, 0.6- .03 * math.cos(sine / 20), -.2) * CFrame.Angles(math.rad(75- 1 * math.cos(sine / 20)),math.rad(20),math.rad(-15- 1 * math.cos(sine / 20))),.1)
  715.         elseif  ToolMode == 2 then
  716.         RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.55- .03 * math.cos(sine / 20), -.1) * CFrame.Angles(math.rad(90- 1 * math.cos(sine / 20)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 20))),.1)        
  717.         elseif  ToolMode == 3 then             
  718.         RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.6- .03 * math.cos(sine / 20), -.1) * CFrame.Angles(math.rad(90 - 1 * math.cos(sine / 20)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 20))),.1)        
  719.         LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.6- .03 * math.cos(sine / 20), -.1) * CFrame.Angles(math.rad(90 - 1 * math.cos(sine / 20)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 20))),.1)                 
  720.         elseif  ToolMode == 4 then  
  721.         RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.5- .03 * math.cos(sine / 20), -.0) * CFrame.Angles(math.rad(0 - 1 * math.cos(sine / 20)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 20))),.1)         
  722.         LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5- .03 * math.cos(sine / 20), -.0) * CFrame.Angles(math.rad(0 - 1 * math.cos(sine / 20)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 20))),.1)        
  723.         elseif  ToolMode == 5 then    
  724. MoveArms = true    
  725.        
  726.        
  727.            
  728.         end    
  729.         return
  730.     end
  731.  
  732.     if (toolAnim == "Slash") then
  733.         SlashAnim()
  734.        
  735.         return
  736.     end
  737.  
  738.     if (toolAnim == "Lunge") then
  739.         LungeAnim()
  740.         return
  741.     end
  742. end
  743.  
  744.  
  745.  
  746. game:GetService'RunService'.Stepped:connect(function()
  747.    
  748. sine = sine + change
  749.  
  750.   local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  751.     local velderp = RootPart.Velocity.y
  752.     hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, model)
  753.  
  754.  
  755. if sprintmode == true then
  756. jp = 60
  757. ws = 24
  758. else   
  759. jp = 50
  760. ws = 6
  761. end
  762.  
  763. if hitfloor ~= nil then
  764. inAir = true
  765. else
  766. inAir = false  
  767. end
  768.  
  769. if inAir == true then
  770. if inAir2 == false then
  771.  
  772.  
  773. JumpAfterEffect()
  774.  
  775. end
  776. end
  777.  
  778. if hitfloor ~= nil then
  779. inAir2 = true
  780. else
  781. inAir2 = false 
  782. end
  783. --[
  784.  
  785. if RootPart.Velocity.y > 1 and hitfloor == nil then
  786. Anim = "Jump"
  787. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  788. Anim = "Fall"
  789. elseif Humanoid.Sit == true then
  790. Anim = "Sit"   
  791. elseif torvel < 1 and hitfloor ~= nil then
  792. Anim = "Idle"
  793. elseif torvel > 2 and  hitfloor ~= nil then
  794. if sprintmode == true then
  795. Anim = "Run"
  796. else
  797. Anim = "Walk"
  798. end
  799. else
  800. Anim = ""
  801.    
  802. end
  803.  
  804.  
  805.  
  806. --]]
  807.  
  808. if attack == false then
  809. Humanoid.JumpPower=jp
  810. Humanoid.WalkSpeed=ws  
  811.  
  812.     local tool = getTool()
  813.     if tool and tool:FindFirstChild("Handle") then
  814.    
  815. MoveArms = false
  816.  
  817.         local animStringValueObject = getToolAnim(tool)
  818.  
  819.         if animStringValueObject then
  820.             toolAnim = animStringValueObject.Value
  821.             -- message recieved, delete StringValue
  822.             animStringValueObject.Parent = nil
  823.            
  824.         end
  825.  
  826.  
  827.  
  828.         animateTool()  
  829.  
  830.  
  831. if ToolMode == 1 or ToolMode == 2 then
  832. if Anim == "Jump" then
  833. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(20 -1* math.cos(sine / 10)),math.rad(0),math.rad(-5)),.3)
  834. elseif Anim == "Fall" then 
  835. LS.C0 = LS.C0:lerp(CFrame.new(-1.1, 1- .03 * math.cos(sine / 15), .3) * CFrame.Angles(math.rad(15 -1* math.cos(sine / 10)),math.rad(0),math.rad(-100)),.05)
  836. elseif Anim == "Idle" then
  837. if Gen == "Boy" then
  838. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5- .03 * math.cos(sine / 20), 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-1+ 1 * math.cos(sine / 20))),.1)
  839. end
  840. if Gen == "Girl" then
  841. LS.C0 = LS.C0:lerp(CFrame.new(-1.25, 0.3- .03 * math.cos(sine / 26),  .1) * CFrame.Angles(math.rad(6),math.rad(20),math.rad(23+ 0 * math.cos(sine / 25))),.1)
  842. end
  843. elseif Anim == "Sit" then
  844. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5- .03 * math.cos(sine / 20), 0) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(-1+ 1 * math.cos(sine / 20))),.1)
  845. elseif Anim == "Walk" then
  846. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(-30 * math.cos(sine / 7)),math.rad(0),math.rad(0)),.1)
  847. elseif Anim == "Run" then
  848. LS.C0 = LS.C0:lerp(CFrame.new(-1.49, 0.6, 0) * CFrame.Angles(math.rad(10+75*math.cos(sine / 4)), math.rad(5+-35*math.cos(sine / 4)), math.rad(-2+10*math.cos(sine / 4))), .3)
  849. else
  850. LS.C0 = LS.C0:lerp(CFrame.new(-1.3, 0.8, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-35)),.05)
  851. end
  852. end
  853.  
  854.            
  855.     else
  856. MoveArms = true
  857.     end
  858.  
  859.  
  860. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  861. if Anim == "Jump" then
  862. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  863. if MoveTH == true then
  864. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-15-3 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.1)
  865. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, 0, 1.3 +-.05 * math.cos(sine / 15)) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)),.15)
  866. end
  867. if MoveArms == true then
  868. RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.5- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(20 +1* math.cos(sine / 10)),math.rad(0),math.rad(5)),.3)
  869. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(20 -1* math.cos(sine / 10)),math.rad(0),math.rad(-5)),.3)
  870. end
  871. if MoveLegs == true then
  872. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.85+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
  873. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.35+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-25 +1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.2)
  874. end
  875. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  876. elseif Anim == "Fall" then 
  877. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  878. if MoveTH == true then     
  879. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(25-3 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.05)
  880. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, 0, -0.3 +-.05 * math.cos(sine / 15)) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.08)
  881. end
  882. if MoveArms == true then
  883. RS.C0 = RS.C0:lerp(CFrame.new(1.1, 1- .03 * math.cos(sine / 15), .3) * CFrame.Angles(math.rad(15 +1* math.cos(sine / 10)),math.rad(0),math.rad(100)),.05)
  884. LS.C0 = LS.C0:lerp(CFrame.new(-1.1, 1- .03 * math.cos(sine / 15), .3) * CFrame.Angles(math.rad(15 -1* math.cos(sine / 10)),math.rad(0),math.rad(-100)),.05)
  885. end
  886. if MoveLegs == true then
  887. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.15+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
  888. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.55+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-0 +1* math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
  889. end
  890. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  891. elseif Anim == "Sit" then
  892. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  893. if MoveTH == true then
  894. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(3+2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1)
  895. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, 0, -.1 +-.03 * math.cos(sine / 20)) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  896. end
  897. if MoveArms == true then
  898. if Gen == "Girl" then
  899. RS.C0 = RS.C0:lerp(CFrame.new(1.3, 0.3- .03 * math.cos(sine / 20), -.1) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(-30- 1 * math.cos(sine / 20))),.1)
  900. LS.C0 = LS.C0:lerp(CFrame.new(-1.3, 0.3- .03 * math.cos(sine / 20), -.1) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(30+ 1 * math.cos(sine / 20))),.1)
  901. end
  902. if Gen == "Boy" then
  903. RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.5- .03 * math.cos(sine / 20), -.0) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(-0- 1 * math.cos(sine / 20))),.1)
  904. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5- .03 * math.cos(sine / 20), -.0) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(0+ 1 * math.cos(sine / 20))),.1)
  905. end
  906.  
  907. end
  908. if MoveLegs == true then
  909. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.85+ .03 * math.cos(sine / 20), 0) * CFrame.Angles(math.rad(80),math.rad(0),math.rad(2.5- .1 * math.cos(sine / 20))),.15)
  910. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.85+ .03 * math.cos(sine / 20), 0) * CFrame.Angles(math.rad(80),math.rad(0),math.rad(-2.5+ .1 * math.cos(sine / 20))),.15)
  911. end
  912. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  913. elseif Anim == "Idle" then
  914. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  915. if Gen == "Girl" then
  916.    
  917. if MoveTH == true then
  918. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(3+2 * math.cos(sine / 25)),math.rad(-7 * math.cos(sine / 26)),math.rad(2 * math.cos(sine / 26))),.1)
  919. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(.07 * math.cos(sine / 26), 0, -.1 +-.03 * math.cos(sine / 25)) * CFrame.Angles(math.rad(0),math.rad(4 * math.cos(sine / 26)),math.rad(-3 * math.cos(sine / 26))),.15)
  920. end
  921. if MoveArms == true then
  922. RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.5- .01 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(1- 2 * math.cos(sine / 26))),.1)
  923. LS.C0 = LS.C0:lerp(CFrame.new(-1.25, 0.3- .03 * math.cos(sine / 26),  .1) * CFrame.Angles(math.rad(6),math.rad(20),math.rad(23+ 0 * math.cos(sine / 25))),.1)
  924. end
  925. if MoveLegs == true then
  926. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.95+ .03 * math.cos(sine / 25), .02) * CFrame.Angles(math.rad(-3),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 25)))*CFrame.new(0, -.03 * math.cos(sine / 26), 0-0.03 * math.cos(sine / 26)) * CFrame.Angles(math.rad(0.5 * math.cos(sine / 26)),math.rad(2 * math.cos(sine / 26)),math.rad(-4 * math.cos(sine / 26))),.15)
  927. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.95+ .03 * math.cos(sine / 25), -.25) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-2.5+ .1 * math.cos(sine / 25)))*CFrame.new(0, .03 * math.cos(sine / 26), 0) * CFrame.Angles(math.rad(-0 -2 * math.cos(sine / 26)),math.rad(-20 +2 * math.cos(sine / 26)),math.rad(-4 * math.cos(sine / 26))),.15)
  928. end
  929.  
  930. end
  931.  
  932.  
  933.  
  934.  
  935.  
  936. if Gen == "Boy" then
  937. if MoveTH == true then
  938. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(3+2 * math.cos(sine / 20)),math.rad(0),math.rad(0)),.1)
  939. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, 0, -.1 +-.03 * math.cos(sine / 20)) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.15)
  940. end
  941. if MoveArms == true then
  942. RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.5- .03 * math.cos(sine / 20), 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(1- 1 * math.cos(sine / 20))),.1)
  943. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5- .03 * math.cos(sine / 20), 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-1+ 1 * math.cos(sine / 20))),.1)
  944. end
  945. if MoveLegs == true then
  946. RH.C0 = RH.C0:lerp(CFrame.new(.5, -0.95+ .03 * math.cos(sine / 20), 0) * CFrame.Angles(math.rad(-0),math.rad(0),math.rad(2.5- .1 * math.cos(sine / 20))),.15)
  947. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -0.95+ .03 * math.cos(sine / 20), 0) * CFrame.Angles(math.rad(-0),math.rad(0),math.rad(-2.5+ .1 * math.cos(sine / 20))),.15)
  948. end
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956. end
  957.  
  958. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  959. elseif Anim == "Walk" then
  960. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  961. if Gen == "Girl" then
  962.  
  963. if MoveTH == true then 
  964. Neck.C0 = Neck.C0:lerp(NeckCF * cf(0, 0, 0 + 0.025 * math.cos(sine / 3.5)) * CFrame.Angles(math.rad(0 - 1.5 * math.cos(sine / 3.5)), math.rad(5.5 * math.cos(sine / 7) ), math.rad(-7.5 * math.cos(sine / 7)) + RootPart.RotVelocity.Y / 14), 0.15)
  965. RJ.C0 = RJ.C0:lerp(RootCF * cf(0, 0, -0.075 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * CFrame.Angles(math.rad(3 - 2.5 * math.cos(sine / 3.5)), math.rad(-5 * math.cos(sine / 7)), math.rad(10 * math.cos(sine / 7))), 0.15)
  966. end
  967. if MoveArms == true then
  968. RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.5- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(30 * math.cos(sine / 7)),math.rad(0),math.rad(4 * math.cos(sine / 7))),.1)
  969. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(-30 * math.cos(sine / 7)),math.rad(0),math.rad(4 * math.cos(sine / 7))),.1)
  970. end
  971. if MoveLegs == true then
  972. RH.C0 = RH.C0:lerp( cf(.5, -0.925 - 0.5 * math.cos(sine / 7) / 2,-0.1+ 0.5 * math.cos(sine / 7) / 2) * CFrame.Angles(math.rad(-7.5 - 15 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * CFrame.Angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(-90), math.rad(5 * math.cos(sine / 7))), 0.15)
  973. LH.C0 = LH.C0:lerp( cf(-.5, -0.925 + 0.5 * math.cos(sine / 7) / 2,-0.1+ -0.5 * math.cos(sine / 7) / 2) * CFrame.Angles(math.rad(-7.5 + 15 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * CFrame.Angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(90), math.rad(5 * math.cos(sine / 7))), 0.15)
  974. end
  975.  
  976. end
  977.  
  978.  
  979. if Gen == "Boy" then
  980. if MoveTH == true then 
  981. Neck.C0 = Neck.C0:lerp(NeckCF * cf(0, 0, 0 + 0.025 * math.cos(sine / 3.5)) * CFrame.Angles(math.rad(0 - 1.5 * math.cos(sine / 3.5)), math.rad(1.5 * math.cos(sine / 7) ), math.rad(-7.5 * math.cos(sine / 7)) + RootPart.RotVelocity.Y / 14), 0.15)
  982. RJ.C0 = RJ.C0:lerp(RootCF * cf(0, 0, -0.075 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * CFrame.Angles(math.rad(3 - 2.5 * math.cos(sine / 3.5)), math.rad(0), math.rad(10 * math.cos(sine / 7))), 0.15)
  983. end
  984. if MoveArms == true then
  985. RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.5- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(30 * math.cos(sine / 7)),math.rad(0),math.rad(-0)),.1)
  986. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5- .03 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(-30 * math.cos(sine / 7)),math.rad(0),math.rad(0)),.1)
  987. end
  988. if MoveLegs == true then
  989. RH.C0 = RH.C0:lerp( cf(.5, -0.925 - 0.5 * math.cos(sine / 7) / 2,-0.1+ 0.5 * math.cos(sine / 7) / 2) * CFrame.Angles(math.rad(-7.5 - 15 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * CFrame.Angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(-90), math.rad(0)), 0.15)
  990. LH.C0 = LH.C0:lerp( cf(-.5, -0.925 + 0.5 * math.cos(sine / 7) / 2,-0.1+ -0.5 * math.cos(sine / 7) / 2) * CFrame.Angles(math.rad(-7.5 + 15 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * CFrame.Angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(90), math.rad(0)), 0.15)
  991. end
  992. end
  993. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  994. elseif Anim == "Run" then
  995. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  996.  
  997. if MoveTH == true then 
  998. Neck.C0 = Neck.C0:lerp(NeckCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(-8.5 * math.cos(sine / 4)) + RootPart.RotVelocity.Y / 14), .3)
  999. RJ.C0 = RJ.C0:lerp(RootCF * cf(0, 0, -0.1 + 0.15 * math.cos(sine / 3)) * CFrame.Angles(math.rad(15), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(10 * math.cos(sine / 4))), .4)
  1000. end
  1001. if MoveArms == true then
  1002. RS.C0 = RS.C0:lerp(CFrame.new(1.49, 0.62, .3*math.cos(sine / 4)) * CFrame.Angles(math.rad(10+-75*math.cos(sine / 4)), math.rad(5+-35*math.cos(sine / 4)), math.rad(2+10*math.cos(sine / 4))), .3)
  1003. LS.C0 = LS.C0:lerp(CFrame.new(-1.49, 0.62, -.3*math.cos(sine / 4)) * CFrame.Angles(math.rad(10+75*math.cos(sine / 4)), math.rad(5+-35*math.cos(sine / 4)), math.rad(-2+10*math.cos(sine / 4))), .3)
  1004. end
  1005. if MoveLegs == true then
  1006. RH.C0 = RH.C0:lerp( cf(.5, -1.0 - -0.3 * math.cos(sine / 4), -.1 - 0.1 * math.cos(sine / 4)) * CFrame.Angles(math.rad(-10 + 50 * math.cos(sine / 4)), math.rad(0), math.rad(2)), .4)
  1007. LH.C0 = LH.C0:lerp( cf(-.5, -1.0 + -0.3 * math.cos(sine / 4), -.1 + 0.1 * math.cos(sine / 4)) * CFrame.Angles(math.rad(10 -50 * math.cos(sine / 4)), math.rad(0), math.rad(-2)), .4)
  1008. end
  1009.  
  1010.  
  1011. --[[
  1012.  
  1013.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.15 * math.cos(sine / 3)) * angles(math.rad(15), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(10 * math.cos(sine / 4))), .5)
  1014.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-8.5 * math.cos(sine / 4)) + RootPart.RotVelocity.Y / 9), .4)
  1015.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10+-75*math.cos(sine / 4)), math.rad(5+-35*math.cos(sine / 4)), math.rad(2+10*math.cos(sine / 4))), .4)
  1016.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10+75*math.cos(sine / 4)), math.rad(5+-35*math.cos(sine / 4)), math.rad(-2+10*math.cos(sine / 4))), .4)
  1017.                     RH.C0 = clerp(RH.C0, cn(1, -1.0 - -0.3 * math.cos(sine / 4), -.1 - 0.1 * math.cos(sine / 4)) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(-10 + 50 * math.cos(sine / 4))), .5)
  1018.                     LH.C0 = clerp(LH.C0, cn(-1, -1.0 + -0.3 * math.cos(sine / 4), -.1 + 0.1 * math.cos(sine / 4)) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(10 +50 * math.cos(sine / 4))), .5)
  1019.  
  1020.  
  1021.  
  1022. --]]
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030. else
  1031. -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  1032. --                   If anim is an false value so errors will not come
  1033. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1034. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1035. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, 0, -0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.05)
  1036. RS.C0 = RS.C0:lerp(CFrame.new(1.3, 0.8, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(35)),.05)
  1037. LS.C0 = LS.C0:lerp(CFrame.new(-1.3, 0.8, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-35)),.05)
  1038. RH.C0 = RH.C0:lerp(CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-0),math.rad(0),math.rad(10)),.05)
  1039. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-0),math.rad(0),math.rad(-10)),.05)
  1040. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  1041. end
  1042. end
  1043.  
  1044. if Humanoid.Health < 0.1 and attack == false then
  1045. attack = true
  1046.  
  1047.  
  1048. for i = 1,3,.1 do
  1049.     swait()
  1050. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),.07)
  1051. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.07)
  1052. RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(1),math.rad(0),math.rad(10)),.07)
  1053. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-5),math.rad(0),math.rad(-10)),.07)
  1054. RH.C0 = RH.C0:lerp(CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),.07)
  1055. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),.07)
  1056.  
  1057.  
  1058.  
  1059. end
  1060. for i = 1,15,.1 do
  1061.     swait()
  1062. Neck.C0 = Neck.C0:lerp(NeckCF*CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.07)
  1063. RJ.C0 = RJ.C0:lerp(RootCF*CFrame.new(0, -2, -2.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),.07)
  1064. RS.C0 = RS.C0:lerp(CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(180),math.rad(0),math.rad(0)),.07)
  1065. LS.C0 = LS.C0:lerp(CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)),.07)
  1066. RH.C0 = RH.C0:lerp(CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-0),math.rad(0),math.rad(5)),.07)
  1067. LH.C0 = LH.C0:lerp(CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-0),math.rad(0),math.rad(-5)),.07)
  1068.  
  1069.  
  1070.  
  1071. end
  1072. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, true)
  1073. Humanoid.Health = 0
  1074. end
  1075.  
  1076. end)
  1077. --ChatFunc--
  1078. local colorone = "Bright red" -- Crimson
  1079. local colortwo = "Bright red" -- Bright red
  1080. local colorthree = "Bright red" -- Really red
  1081.  
  1082. local mode = "BerserkMode"
  1083. ------------------------------------------------
  1084.  
  1085.  
  1086. wait(1 / 60)
  1087. Effects = { }
  1088. function RemoveOutlines(part)
  1089.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1090. end
  1091.    
  1092. CFuncs = {    
  1093.     ["Part"] = {
  1094.         Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1095.             local Part = Create("Part"){
  1096.                 Parent = Parent,
  1097.                 Reflectance = Reflectance,
  1098.                 Transparency = Transparency,
  1099.                 CanCollide = false,
  1100.                 Locked = true,
  1101.                 BrickColor = BrickColor.new(tostring(BColor)),
  1102.                 Name = Name,
  1103.                 Size = Size,
  1104.                 Material = Material,
  1105.             }
  1106. --remove these lines if u want it purple--------
  1107.  
  1108. ------------------------------------------------
  1109.             RemoveOutlines(Part)
  1110.             return Part
  1111.         end;
  1112.     };
  1113.    
  1114.     ["Mesh"] = {
  1115.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1116.             local Msh = Create(Mesh){
  1117.                 Parent = Part,
  1118.                 Offset = OffSet,
  1119.                 Scale = Scale,
  1120.             }
  1121.             if Mesh == "SpecialMesh" then
  1122.                 Msh.MeshType = MeshType
  1123.                 Msh.MeshId = MeshId
  1124.             end
  1125.             return Msh
  1126.         end;
  1127.     };
  1128.    
  1129.     ["Mesh"] = {
  1130.         Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1131.             local Msh = Create(Mesh){
  1132.                 Parent = Part,
  1133.                 Offset = OffSet,
  1134.                 Scale = Scale,
  1135.             }
  1136.             if Mesh == "SpecialMesh" then
  1137.                 Msh.MeshType = MeshType
  1138.                 Msh.MeshId = MeshId
  1139.             end
  1140.             return Msh
  1141.         end;
  1142.     };
  1143.    
  1144.     ["Weld"] = {
  1145.         Create = function(Parent, Part0, Part1, C0, C1)
  1146.             local Weld = Create("Weld"){
  1147.                 Parent = Parent,
  1148.                 Part0 = Part0,
  1149.                 Part1 = Part1,
  1150.                 C0 = C0,
  1151.                 C1 = C1,
  1152.             }
  1153.             return Weld
  1154.         end;
  1155.     };
  1156.  
  1157.     ["Sound"] = {
  1158.         Create = function(id, par, vol, pit)
  1159.             coroutine.resume(coroutine.create(function()
  1160.                 local S = Create("Sound"){
  1161.                     Volume = vol,
  1162.                     Pitch = pit or 1,
  1163.                     SoundId = id,
  1164.                     Parent = par or workspace,
  1165.                 }
  1166.                 wait()
  1167.                 S:play()
  1168.                 game:GetService("Debris"):AddItem(S, 6)
  1169.             end))
  1170.         end;
  1171.     };
  1172.    
  1173.     ["ParticleEmitter"] = {
  1174.         Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1175.             local fp = Create("ParticleEmitter"){
  1176.                 Parent = Parent,
  1177.                 Color = ColorSequence.new(Color1, Color2),
  1178.                 LightEmission = LightEmission,
  1179.                 Size = Size,
  1180.                 Texture = Texture,
  1181.                 Transparency = Transparency,
  1182.                 ZOffset = ZOffset,
  1183.                 Acceleration = Accel,
  1184.                 Drag = Drag,
  1185.                 LockedToPart = LockedToPart,
  1186.                 VelocityInheritance = VelocityInheritance,
  1187.                 EmissionDirection = EmissionDirection,
  1188.                 Enabled = Enabled,
  1189.                 Lifetime = LifeTime,
  1190.                 Rate = Rate,
  1191.                 Rotation = Rotation,
  1192.                 RotSpeed = RotSpeed,
  1193.                 Speed = Speed,
  1194.                 VelocitySpread = VelocitySpread,
  1195.             }
  1196.             return fp
  1197.         end;
  1198.     };
  1199.  
  1200.     CreateTemplate = {
  1201.    
  1202.     };
  1203. }
  1204.  
  1205.  
  1206.  
  1207. local p = game.Players.LocalPlayer
  1208. --if p.Name~='UniversalDespair' and p.Name~='hasang1' then p.Character:Destroy() script:Destroy() return end
  1209. local char = p.Character
  1210. local mouse = p:GetMouse()
  1211. local larm = char["Left Arm"]
  1212. local rarm = char["Right Arm"]
  1213. local lleg = char["Left Leg"]
  1214. local rleg = char["Right Leg"]
  1215. local hed = char.Head
  1216. local torso = char.Torso
  1217. local hum = char.Humanoid
  1218. local cam = game.Workspace.CurrentCamera
  1219. local root = char.HumanoidRootPart
  1220. local deb = false
  1221. local shot = 0
  1222. local debris=game:service"Debris"
  1223. local l = game:GetService("Lighting")
  1224. local rs = game:GetService("RunService").RenderStepped
  1225.  
  1226.  
  1227.  
  1228.  
  1229. Debounces = {
  1230. CanAttack = true;
  1231. NoIdl = false;
  1232. Slashing = false;
  1233. Slashed = false;
  1234. RPunch = false;
  1235. RPunched = false;
  1236. LPunch = false;
  1237. LPunched = false;
  1238. }
  1239. local Touche = {Character.Name, }
  1240. --Sprint--
  1241. mouse.KeyDown:connect(function(k)
  1242. if k == "0" and attack == false then   
  1243. sprintmode=true
  1244. end
  1245. if k == "9" and attack == false then   
  1246. if Gen == "Boy" then
  1247. Gen = "Girl"
  1248. else
  1249. Gen = "Boy"
  1250. end
  1251. print(Gen.." Anims")
  1252. end
  1253. if k == "8" and attack == false then   
  1254.  
  1255. ToolMode = ToolMode + 1
  1256.  
  1257. if ToolMode >5 then
  1258.  
  1259. ToolMode = 1   
  1260. end
  1261. print("Tool Anim "..ToolMode)
  1262. end
  1263.  
  1264.  
  1265.         end)
  1266. mouse.KeyUp:connect(function(k)
  1267. if k == "0" and attack == false then   
  1268. sprintmode=false   
  1269. end
  1270.  
  1271. end)
  1272. ----------------------------------------------------
  1273. function genWeld(a,b)
  1274.     local w = Instance.new("Weld",a)
  1275.     w.Part0 = a
  1276.     w.Part1 = b
  1277.     return w
  1278. end
  1279. function weld(a, b)
  1280.     local weld = Instance.new("Weld")
  1281.     weld.Name = "W"
  1282.     weld.Part0 = a
  1283.     weld.Part1 = b
  1284.     weld.C0 = a.CFrame:inverse() * b.CFrame
  1285.     weld.Parent = a
  1286.     return weld;
  1287. end
  1288. ----------------------------------------------------
  1289. function Lerp(c1,c2,al)
  1290. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  1291. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  1292. for i,v in pairs(com1) do
  1293. com1[i] = v+(com2[i]-v)*al
  1294. end
  1295. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  1296. end
  1297. ----------------------------------------------------
  1298. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  1299. local wld = Instance.new("Weld", wp1)
  1300. wld.Part0 = wp0
  1301. wld.Part1 = wp1
  1302. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1303. end
  1304. ----------------------------------------------------
  1305. function weld5(part0, part1, c0, c1)
  1306.     weeld=Instance.new("Weld", part0)
  1307.     weeld.Part0=part0
  1308.     weeld.Part1=part1
  1309.     weeld.C0=c0
  1310.     weeld.C1=c1
  1311.     return weeld
  1312. end
  1313. ----------------------------------------------------
  1314. function HasntTouched(plrname)
  1315. local ret = true
  1316. for _, v in pairs(Touche) do
  1317. if v == plrname then
  1318. ret = false
  1319. end
  1320. end
  1321. return ret
  1322. end
  1323. ----------------------------------------------------
  1324.  
  1325. function chatfunc(text)
  1326. local chat = coroutine.wrap(function()
  1327. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1328. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1329. end
  1330. local naeeym2 = Instance.new("BillboardGui",Character)
  1331. naeeym2.Size = UDim2.new(0,100,0,40)
  1332. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1333. naeeym2.Adornee = Head
  1334. naeeym2.Name = "TalkingBillBoard"
  1335. local tecks2 = Instance.new("TextLabel",naeeym2)
  1336. tecks2.BackgroundTransparency = 1
  1337. tecks2.BorderSizePixel = 0
  1338. tecks2.Text = ""
  1339. tecks2.Font = "Fantasy"
  1340. tecks2.FontSize = "Size24"
  1341. tecks2.TextStrokeTransparency = 0
  1342. tecks2.TextColor3 = BrickColor.new(colortwo).Color
  1343. tecks2.TextStrokeColor3 = BrickColor.new(colorone).Color
  1344. tecks2.Size = UDim2.new(1,0,0.5,0)
  1345. local shk = coroutine.wrap(function()
  1346. while tecks2 ~= nil do
  1347. wait(.05)
  1348. tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  1349. end
  1350. end)
  1351. shk()
  1352. for i = 1,string.len(text),1 do
  1353. CFuncs.Sound.Create("rbxassetid://0", Torso, 2, 0.5)
  1354. tecks2.Text = string.sub(text,1,i)
  1355. wait(0.01)
  1356. end
  1357. wait(1)
  1358. for i = 1, 5 do
  1359. wait(.01)
  1360. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  1361. tecks2.Rotation = tecks2.Rotation + 2
  1362. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  1363. tecks2.TextTransparency = tecks2.TextTransparency + .2
  1364. end
  1365. naeeym2:Destroy()
  1366. end)
  1367. chat()
  1368. end
  1369. function onChatted(msg)
  1370. chatfunc(msg)
  1371. end
  1372. ---Player.Chatted:connect(onChatted)
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388. function chatfunc2(text)
  1389. local chat = coroutine.wrap(function()
  1390. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1391. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1392. end
  1393. local naeeym2 = Instance.new("BillboardGui",Character)
  1394. naeeym2.Size = UDim2.new(0,100,0,40)
  1395. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1396. naeeym2.Adornee = Head
  1397. naeeym2.Name = "TalkingBillBoard"
  1398. local tecks2 = Instance.new("TextLabel",naeeym2)
  1399. tecks2.BackgroundTransparency = 1
  1400. tecks2.BorderSizePixel = 0
  1401. tecks2.Text = ""
  1402. tecks2.Font = "Fantasy"
  1403. tecks2.FontSize = "Size24"
  1404. tecks2.TextStrokeTransparency = 0
  1405. tecks2.TextColor3 = BrickColor.new(colortwo).Color
  1406. tecks2.TextStrokeColor3 = BrickColor.new(colorthree).Color
  1407. tecks2.Size = UDim2.new(1,0,0.5,0)
  1408. local shk = coroutine.wrap(function()
  1409. while tecks2 ~= nil do
  1410. wait(.05)
  1411. tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  1412. end
  1413. end)
  1414. shk()
  1415. for i = 1,string.len(text),1 do
  1416. CFuncs.Sound.Create("rbxassetid://0", Torso, 2, 0.5)
  1417. tecks2.Text = string.sub(text,1,i)
  1418. wait(0.01)
  1419. end
  1420. wait(1)
  1421. for i = 1, 5 do
  1422. wait(.01)
  1423. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  1424. tecks2.Rotation = tecks2.Rotation + 2
  1425. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  1426. tecks2.TextTransparency = tecks2.TextTransparency + .2
  1427. end
  1428. naeeym2:Destroy()
  1429. end)
  1430. chat()
  1431. end
  1432. function onChatted(msg)
  1433. chatfunc(msg)
  1434. end
  1435. ----------------------------------------
  1436. function CreateSound(ID, PARENT, VOLUME, PITCH)
  1437.     local NEWSOUND = nil
  1438.     coroutine.resume(coroutine.create(function()
  1439.         NEWSOUND = IT("Sound", PARENT)
  1440.         NEWSOUND.Volume = VOLUME
  1441.         NEWSOUND.Pitch = PITCH
  1442.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1443.         Swait()
  1444.         NEWSOUND:play()
  1445.         game:GetService("Debris"):AddItem(NEWSOUND, 10)
  1446.     end))
  1447.     return NEWSOUND
  1448. end
  1449. wait(1)
  1450. Character.Head.face.Texture = "http://www.roblox.com/asset/?id=256023366"
  1451. chatfunc("Micheal Rosen Loaded.")
  1452. wait(1.9)
  1453. chatfunc("")
  1454. Character.Humanoid.Name = "MichaelRosen"
  1455. humanoid.DisplayDistanceType="None"
  1456. humanoid.HealthDisplayDistance="None"
  1457. hum.MaxHealth = 'inf'
  1458. hum.Health = 'inf'
  1459.         game.Players.LocalPlayer.Character:FindFirstChild("Body Colors").HeadColor = BrickColor.new("Bright red")
  1460.             game.Players.LocalPlayer.Character:FindFirstChild("Body Colors").LeftArmColor = BrickColor.new("Bright red")
  1461.             game.Players.LocalPlayer.Character:FindFirstChild("Body Colors").LeftLegColor = BrickColor.new("Bright red")
  1462.             game.Players.LocalPlayer.Character:FindFirstChild("Body Colors").RightArmColor = BrickColor.new("Bright red")
  1463.             game.Players.LocalPlayer.Character:FindFirstChild("Body Colors").RightLegColor = BrickColor.new("Bright red")
  1464.             game.Players.LocalPlayer.Character:FindFirstChild("Body Colors").TorsoColor = BrickColor.new("Bright red")
  1465. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1466. if v.ClassName == "Shirt" then
  1467. v:Destroy()
  1468. end
  1469. end
  1470. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1471. if v.ClassName == "Pants" then
  1472. v:Destroy()
  1473. end
  1474. end
  1475. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  1476. if v.ClassName == "ShirtGraphic" then
  1477. v:Destroy()
  1478. end
  1479. end
  1480. function StopTheCar()
  1481. attack = false
  1482. local Magic = Instance.new("Sound")
  1483. Magic.SoundId = "http://www.roblox.com/asset/?id=199607491"
  1484. Magic.Parent = Character
  1485. Magic.Volume = 10
  1486. Magic.Looped = false
  1487. Magic:Play()
  1488. end
  1489. function Noice()
  1490. local Noice = Instance.new("Sound")
  1491. Noice.SoundId = "http://www.roblox.com/asset/?id=190489846"
  1492. Noice.Parent = Character
  1493. Noice.Volume = 10
  1494. Noice.Looped = false
  1495. Noice:Play()
  1496. end
  1497. function Die()
  1498. sound:Stop()
  1499. wait(1)
  1500. chatfunc("Im going to keel over and die...")
  1501. wait(1)
  1502. local Die= Instance.new("Sound")
  1503. Die.SoundId = "http://www.roblox.com/asset/?id=140262983"
  1504. Die.Parent = Character
  1505. Die.Volume = 10
  1506. Die.Looped = false
  1507. Die:Play()
  1508. wait(1.5)
  1509. hum.Health = 0
  1510. hum.MaxHealth = 0
  1511. end
  1512. function Cake()
  1513. local Cake = Instance.new("Sound")
  1514. Cake.SoundId = "http://www.roblox.com/asset/?id=198217778"
  1515. Cake.Parent = Character
  1516. Cake.Volume = 10
  1517. Cake.Looped = false
  1518. Cake:Play()
  1519. sound.Volume = 1
  1520. chatfunc("I love cake.")
  1521. wait(1)
  1522. sound.Volume = 10
  1523. wait(1)
  1524. end
  1525. function USuck()
  1526.         spy = false
  1527.         sound.SoundId = "rbxassetid://849611543"
  1528.         sound:Play()
  1529.         wait(78)
  1530.         chatfunc("Like my rap?")
  1531.         sound.SoundId = "rbxassetid://1801250637"
  1532.         sound.Parent = Character
  1533.         sound:Play()
  1534. end
  1535. function Spy()
  1536. spy = true
  1537. sound.SoundId = "rbxassetid://273516568"
  1538. sound.Parent = Character
  1539. sound:Play()
  1540. Character.Head.face.Texture = "http://www.roblox.com/asset/?id=66867935"
  1541. chatfunc("SPY SAPPING MY COSTUME!")
  1542. end
  1543. function Rosen()
  1544. spy = false
  1545. sound.SoundId = "rbxassetid://1801250637"
  1546. sound.Parent = Character
  1547. sound:Play()
  1548. chatfunc("Is good.")
  1549. Character.Head.face.Texture = "http://www.roblox.com/asset/?id=256023366"
  1550. end
  1551. function SlapHand()
  1552. local Slap = Instance.new("Sound")
  1553. Slap.SoundId = "http://www.roblox.com/asset/?id=131281060"
  1554. Slap.Parent = Character
  1555. Slap.Volume = 10
  1556. Slap.Looped = false
  1557. Slap:Play()
  1558. chatfunc("This is not a trick.")
  1559. end
  1560. function MusicC()
  1561. sound.SoundId = "rbxassetid://340554344"
  1562. sound.Parent = Character
  1563. sound:Play()
  1564. end
  1565. mouse.KeyDown:connect(function(key)
  1566.   if spy == false then
  1567.         if key == 'x' then
  1568.             StopTheCar()
  1569.         elseif key == 'c' then
  1570.             Noice()
  1571.         elseif key == 'b' then
  1572.             Die()
  1573.         elseif key == 'v' then
  1574.             Cake()
  1575.         elseif key == 'z' then
  1576.             USuck()
  1577.         elseif key == 'l' then
  1578.             Spy()
  1579.         end
  1580.     end
  1581. end)
  1582. mouse.KeyDown:connect(function(key)
  1583.   if spy == true then
  1584.         if key == 'x' then
  1585.  
  1586.         elseif key == 'k' then
  1587.             Rosen()
  1588.         elseif key == 'c' then
  1589.             SlapHand()
  1590.         elseif key == 'v' then
  1591.             MusicC()
  1592.         end
  1593.     end
  1594. end)
  1595. --------------------    
  1596. function goldify(hit)
  1597.     local GOLDNAMES = {"Gold","Shiny rock","Munz","$$"}
  1598.     hit.Anchored = false
  1599.     hit.CanCollide = true
  1600.     hit.Parent = workspace
  1601.     hit.Name = GOLDNAMES[MRANDOM(1,#GOLDNAMES)]
  1602.     hit.Material = "Water"
  1603.     hit.BrickColor = BRICKC("Red")
  1604.     if hit:FindFirstChildOfClass("SpecialMesh") then
  1605.         local mesh = hit:FindFirstChildOfClass("SpecialMesh")
  1606.         mesh.TextureId = ""
  1607.     end
  1608.     if hit:FindFirstChildOfClass("Decal") then
  1609.         local mesh = hit:FindFirstChildOfClass("Decal")
  1610.         mesh:remove()
  1611.     end
  1612.     if hit.ClassName == "MeshPart" then
  1613.         hit.TextureID = ""
  1614.     end
  1615.     if hit.ClassName == "UnionOperation" then
  1616.         hit.UsePartColor = true
  1617.     end
  1618. end
  1619.  
  1620. function turntogold(hit)
  1621.     if hit.Parent ~= Character then
  1622.         if hit.Parent ~= workspace then
  1623.             local body = hit.Parent:GetChildren()
  1624.             for part = 1, #body do
  1625.                 local child = body[part]
  1626.                 if child.ClassName == "Part" or child.ClassName == "MeshPart" or child.ClassName == "UnionOperation" then
  1627.                     if child.Name == "Head" then
  1628.                         CreateSound("190489846", child, 2, 1)
  1629.                     end
  1630.                     goldify(child)
  1631.                 elseif child.ClassName == "Accessory" or child.ClassName == "Hat" then
  1632.                     if child:FindFirstChild("Handle") then
  1633.                         goldify(child.Handle)
  1634.                     end
  1635.                 end
  1636.             end
  1637.         else
  1638.             goldify(hit)
  1639.         end
  1640.     end
  1641. end
  1642.  
  1643. --//=================================\\
  1644. --||    ATTACK FUNCTIONS AND STUFF
  1645. --\\=================================//
  1646.  
  1647. local hit = Torso.Touched:Connect(function(hit)
  1648.     if hit.Parent:FindFirstChild("Humanoid") then
  1649.         turntogold(hit)
  1650.     end
  1651. end)
  1652. local hit = RightArm.Touched:Connect(function(hit)
  1653.     if hit.Parent:FindFirstChild("Humanoid") then
  1654.         turntogold(hit)
  1655.     end
  1656. end)
  1657. local hit = LeftArm.Touched:Connect(function(hit)
  1658.     if hit.Parent:FindFirstChild("Humanoid") then
  1659.         turntogold(hit)
  1660.     end
  1661. end)
  1662. local hit = RightLeg.Touched:Connect(function(hit)
  1663.     if hit.Parent:FindFirstChild("Humanoid") then
  1664.         turntogold(hit)
  1665.     end
  1666. end)
  1667. local hit = LeftLeg.Touched:Connect(function(hit)
  1668.     if hit.Parent:FindFirstChild("Humanoid") then
  1669.         turntogold(hit)
  1670.     end
  1671. end)
  1672. local hit = Head.Touched:Connect(function(hit)
  1673.     if hit.Parent:FindFirstChild("Humanoid") then
  1674.         turntogold(hit)
  1675.     end
  1676. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement