Advertisement
plytalent

Roland Character Script Test RBX(Backup)

Sep 19th, 2021
1,242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function createface()
  2.     local Model0 = Instance.new("Model")
  3.     local Part1 = Instance.new("Part")
  4.     local SpecialMesh2 = Instance.new("SpecialMesh")
  5.     local Part3 = Instance.new("Part")
  6.     local Decal4 = Instance.new("Decal")
  7.     local SpecialMesh5 = Instance.new("SpecialMesh")
  8.     local Weld6 = Instance.new("Weld")
  9.     local Weld7 = Instance.new("Weld")
  10.     local Part8 = Instance.new("Part")
  11.     local SpecialMesh9 = Instance.new("SpecialMesh")
  12.     local Weld10 = Instance.new("Weld")
  13.     Model0.Name = "HeadAcc"
  14.     Part1.Name = "Hair"
  15.     Part1.Parent = Model0
  16.     Part1.CFrame = CFrame.new(-10.5516481, 3.84958363, -39.6669617, -0.139173076, 0, 0.990268052, 0, 1, 0, -0.990268052, 0, -0.139173076)
  17.     Part1.Orientation = Vector3.new(0, 98, 0)
  18.     Part1.Position = Vector3.new(-10.551648139954, 3.8495836257935, -39.666961669922)
  19.     Part1.Rotation = Vector3.new(-180, 82, -180)
  20.     Part1.Size = Vector3.new(1, 1, 1)
  21.     Part1.BottomSurface = Enum.SurfaceType.Smooth
  22.     Part1.TopSurface = Enum.SurfaceType.Smooth
  23.     SpecialMesh2.Name = "SpecialMesh"
  24.     SpecialMesh2.Parent = Part1
  25.     SpecialMesh2.MeshId = "rbxassetid://6521980205"
  26.     SpecialMesh2.Scale = Vector3.new(0.94999998807907, 0.95999997854233, 0.91000002622604)
  27.     SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=6517665515"
  28.     SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  29.     Part3.Name = "Head"
  30.     Part3.Parent = Model0
  31.     Part3.CFrame = CFrame.new(-10.8355103, 4.5, -39.626709, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  32.     Part3.Orientation = Vector3.new(0, 90, 0)
  33.     Part3.Position = Vector3.new(-10.835510253906, 4.5, -39.626708984375)
  34.     Part3.Rotation = Vector3.new(0, 90, 0)
  35.     Part3.Size = Vector3.new(2, 1, 1)
  36.     Part3.BottomSurface = Enum.SurfaceType.Smooth
  37.     Part3.TopSurface = Enum.SurfaceType.Smooth
  38.     Decal4.Name = "Face"
  39.     Decal4.Parent = Part3
  40.     Decal4.Texture = "rbxasset://textures/face.png"
  41.     SpecialMesh5.Parent = Part3
  42.     SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25)
  43.     Weld6.Name = "Hair"
  44.     Weld6.Parent = Part3
  45.     Weld6.C0 = CFrame.new(0.0402526855, -0.650416374, 0.283862114, 0.990268052, 0, 0.139173076, 0, 1, 0, -0.139173076, 0, 0.990268052)
  46.     Weld6.Part0 = Part3
  47.     Weld6.Part1 = Part1
  48.     Weld6.part1 = Part1
  49.     Weld7.Name = "Mask"
  50.     Weld7.Parent = Part3
  51.     Weld7.C0 = CFrame.new(0.000289916992, 0, -0.0448408127, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994)
  52.     Weld7.Part0 = Part3
  53.     Weld7.Part1 = Part8
  54.     Weld7.part1 = Part8
  55.     Part8.Name = "Mask"
  56.     Part8.Parent = Model0
  57.     Part8.CFrame = CFrame.new(-10.8803511, 4.5, -39.6269989, 0, 0, 0.99999994, 0, 1, 0, -0.99999994, 0, 0)
  58.     Part8.Orientation = Vector3.new(0, 90, 0)
  59.     Part8.Position = Vector3.new(-10.880351066589, 4.5, -39.626998901367)
  60.     Part8.Rotation = Vector3.new(0, 89.980003356934, 0)
  61.     Part8.Size = Vector3.new(1, 1, 1)
  62.     Part8.BottomSurface = Enum.SurfaceType.Smooth
  63.     Part8.TopSurface = Enum.SurfaceType.Smooth
  64.     SpecialMesh9.Name = "SpecialMesh"
  65.     SpecialMesh9.Parent = Part8
  66.     SpecialMesh9.MeshId = "rbxassetid://5728632913"
  67.     SpecialMesh9.TextureId = "http://www.roblox.com/asset/?id=4809181158"
  68.     SpecialMesh9.MeshType = Enum.MeshType.FileMesh
  69.     Weld10.Name = "Hair"
  70.     Weld10.Parent = Part8
  71.     Weld10.C0 = CFrame.new(0.0399627686, -0.650416374, 0.328702927, 0.990268052, 0, 0.139173076, 0, 1, 0, -0.139173076, 0, 0.990268052)
  72.     Weld10.Part0 = Part8
  73.     Weld10.Part1 = Part1
  74.     Weld10.part1 = Part1
  75.     return Model0
  76. end
  77. local mas = Instance.new("Model",game:GetService("Lighting"))
  78. local Model0 = Instance.new("Model")
  79. local Part1 = Instance.new("Part")
  80. local ParticleEmitter2 = Instance.new("ParticleEmitter")
  81. local Part3 = Instance.new("Part")
  82. local Weld4 = Instance.new("Weld")
  83. local Part5 = Instance.new("Part")
  84. local Weld6 = Instance.new("Weld")
  85. local SpecialMesh7 = Instance.new("SpecialMesh")
  86. Model0.Name = "Main"
  87. Model0.Parent = mas
  88. Model0.PrimaryPart = Part1
  89. Part1.Name = "Hitbox"
  90. Part1.Parent = Model0
  91. Part1.CFrame = CFrame.new(-65.1884003, 2.34880948, 29.0725231, 1, 0, 0, 0, 1, 4.37113883e-08, 0, -4.37113883e-08, 1)
  92. Part1.Position = Vector3.new(-65.188400268555, 2.3488094806671, 29.072523117065)
  93. Part1.Transparency = 1
  94. Part1.Size = Vector3.new(0.0010000000474975, 0.6583531498909, 11.325116157532)
  95. Part1.BottomSurface = Enum.SurfaceType.Smooth
  96. Part1.CanCollide = false
  97. Part1.TopSurface = Enum.SurfaceType.Smooth
  98. ParticleEmitter2.Parent = Part1
  99. ParticleEmitter2.Speed = NumberRange.new(0, 0)
  100. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0.117647, 0.117647, 0.117647))
  101. ParticleEmitter2.LightInfluence = 1
  102. ParticleEmitter2.Texture = "rbxassetid://603193846"
  103. ParticleEmitter2.Transparency = NumberSequence.new(0,1)
  104. ParticleEmitter2.ZOffset = 1
  105. ParticleEmitter2.Size = NumberSequence.new(0.3125,0)
  106. ParticleEmitter2.Acceleration = Vector3.new(0, 5, 0)
  107. ParticleEmitter2.EmissionDirection = Enum.NormalId.Back
  108. ParticleEmitter2.Lifetime = NumberRange.new(0.75, 1)
  109. ParticleEmitter2.Rate = 3000
  110. Part3.Name = "Handle"
  111. Part3.Parent = Model0
  112. Part3.CFrame = CFrame.new(-65.2248993, 3.1950767, 37.3521118, 1, 0, 0, 0, 0.985921264, -0.167210802, 0, 0.167210802, 0.985921264)
  113. Part3.Orientation = Vector3.new(9.6300001144409, 0, 0)
  114. Part3.Position = Vector3.new(-65.224899291992, 3.1950767040253, 37.352111816406)
  115. Part3.Rotation = Vector3.new(9.6300001144409, 0, 0)
  116. Part3.Transparency = 1
  117. Part3.Size = Vector3.new(1, 2, 1)
  118. Part3.BottomSurface = Enum.SurfaceType.Smooth
  119. Part3.CanCollide = false
  120. Part3.TopSurface = Enum.SurfaceType.Smooth
  121. Weld4.Name = "Sword"
  122. Weld4.Parent = Part3
  123. Weld4.C0 = CFrame.new(0.0368614197, -0.65113759, -6.00376034, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  124. Weld4.C1 = CFrame.new(0, 0, 1.20799994, 1, 0, 0, 0, 0.985921264, -0.167210847, 0, 0.167210847, 0.985921264)
  125. Weld4.Part0 = Part3
  126. Weld4.Part1 = Part5
  127. Weld4.part1 = Part5
  128. Part5.Name = "Sword"
  129. Part5.Parent = Model0
  130. Part5.CFrame = CFrame.new(-65.1880417, 2.34899998, 31.3239994, 1, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
  131. Part5.Orientation = Vector3.new(-90, 0, 0)
  132. Part5.Position = Vector3.new(-65.188041687012, 2.3489999771118, 31.323999404907)
  133. Part5.Rotation = Vector3.new(-90, 0, 0)
  134. Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  135. Part5.Size = Vector3.new(0.67699998617172, 15.430000305176, 1.5319999456406)
  136. Part5.BottomSurface = Enum.SurfaceType.Smooth
  137. Part5.BrickColor = BrickColor.new("Really black")
  138. Part5.CanCollide = false
  139. Part5.TopSurface = Enum.SurfaceType.Smooth
  140. Part5.brickColor = BrickColor.new("Really black")
  141. Weld6.Name = "Hitbox"
  142. Weld6.Parent = Part5
  143. Weld6.C0 = CFrame.new(-0.000358581543, 2.25147676, -0.000190496445, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  144. Weld6.Part0 = Part5
  145. Weld6.Part1 = Part1
  146. Weld6.part1 = Part1
  147. SpecialMesh7.Parent = Part5
  148. SpecialMesh7.MeshId = "rbxassetid://7513632006"
  149. SpecialMesh7.MeshType = Enum.MeshType.FileMesh
  150. local swordmodel = nil
  151. for i,v in pairs(mas:GetChildren()) do
  152.     v.Parent = workspace
  153.     swordmodel = v
  154.     pcall(function() v:MakeJoints() end)
  155. end
  156. mas:Destroy()
  157. function newshirt()
  158.     local a = Instance.new("Shirt")
  159.     local b = Instance.new("Pants")
  160.     a.ShirtTemplate = "http://www.roblox.com/asset/?id=1210857659"
  161.     b.PantsTemplate = "http://www.roblox.com/asset/?id=1210858273"
  162.     return a,b
  163. end
  164. local Player = owner or game:GetService("Players"):WaitForChild("plytalent")
  165. wait(1)
  166. local char = Player.Character
  167. script.Parent = char
  168. local weldweapon = Instance.new("Weld",char:WaitForChild("Right Arm"))
  169. weldweapon.Part0 = weldweapon.Parent
  170. weldweapon.Part1 = swordmodel.Handle
  171. swordmodel.Parent = char
  172. local facemodel = createface()
  173. facemodel.Parent = char
  174. local weldface = Instance.new("Weld",char:WaitForChild("Head"))
  175. weldface.Part0 = weldface.Parent
  176. weldface.Part1 = facemodel.Head
  177. local shirt, pants = newshirt()
  178.  
  179. for _,ac in pairs(char:GetChildren())do
  180.     if ac:IsA("Accessory") or ac:IsA("Shirt") or ac:IsA("Pants") then
  181.         ac:Destroy()
  182.     elseif ac:IsA("BasePart") then
  183.         ac.Color = Color3.new(231/255, 231/255, 236/255)
  184.     end
  185. end
  186. shirt.Parent = char
  187. pants.Parent = char
  188. Character=Player.Character
  189. Torso=Character.Torso
  190. Humanoid=Character.Humanoid
  191. LeftArm=Character["Left Arm"]
  192. LeftLeg=Character["Left Leg"]
  193. RightArm=Character["Right Arm"]
  194. RightLeg=Character["Right Leg"]
  195. LS=Torso["Left Shoulder"]
  196. LH=Torso["Left Hip"]
  197. RS=Torso["Right Shoulder"]
  198. RH=Torso["Right Hip"]
  199. Neck=Torso.Neck
  200. RootPart=Character.HumanoidRootPart
  201. RootJoint=RootPart.RootJoint
  202.  
  203. cf = CFrame.new
  204. angles = CFrame.Angles
  205. ROOTC0 =  RootJoint.C0
  206. NECKC0 = Torso.Neck.C0
  207. COS = math.cos
  208. ACOS = math.acos
  209. SIN = math.sin
  210. ASIN = math.asin
  211. ABS = math.abs
  212. MRANDOM = math.random
  213. FLOOR = math.floor
  214.  
  215.  
  216. cf=CFrame.new
  217. cn=CFrame.new
  218. euler=CFrame.fromEulerAnglesXYZ
  219. angles=CFrame.Angles
  220.  
  221.  
  222. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  223. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  224. LH=Torso["Left Hip"]
  225. RH=Torso["Right Hip"]
  226.  
  227. RootCF=euler(-1.57,0,3.14)
  228. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  229.  
  230. RSH=Character.Torso["Right Shoulder"]
  231. LSH=Character.Torso["Left Shoulder"]
  232. --
  233. RSH.Parent=nil
  234. LSH.Parent=nil
  235. --
  236. RW.Name="Right Shoulder"
  237. RW.Part0=Character.Torso
  238. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  239. RW.C1=cf(0, 0.5, 0)
  240. RW.Part1=Character["Right Arm"]
  241. RW.Parent=Character.Torso
  242. --
  243. LW.Name="Left Shoulder"
  244. LW.Part0=Character.Torso
  245. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  246. LW.C1=cf(0, 0.5, 0)
  247. LW.Part1=Character["Left Arm"]
  248. LW.Parent=Character.Torso
  249.  
  250. local currentsine = 0
  251. local attack = false
  252.  
  253. function teleport(plr,where)
  254.     if plr ~= Player then
  255.         return
  256.     end
  257.     char:SetPrimaryPartCFrame(where*CFrame.new(0,3.5,0))
  258. end
  259. local music = Instance.new("Sound",char.HumanoidRootPart)
  260. music.SoundId = "rbxassetid://6659445380"
  261. music.Volume = 0.1
  262. music.Looped = true
  263. music:Play()
  264. local skill_folder = Instance.new("Folder",script)
  265. skill_folder.Name = "Skill_Folder"
  266. local teleport_remote = Instance.new("RemoteEvent",skill_folder)
  267. teleport_remote.Name = "Teleport"
  268. teleport_remote.OnServerEvent:Connect(teleport)
  269.  
  270. function QuaternionSlerp(a, b, t)
  271.     local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  272.     local startInterp, finishInterp;
  273.     if cosTheta >= 0.0001 then
  274.         if (1 - cosTheta) > 0.0001 then
  275.             local theta = math.acos(cosTheta)
  276.             local invSinTheta = 1/math.sin(theta)
  277.             startInterp = math.sin((1-t)*theta)*invSinTheta
  278.             finishInterp = math.sin(t*theta)*invSinTheta  
  279.         else
  280.             startInterp = 1-t
  281.             finishInterp = t
  282.         end
  283.     else
  284.         if (1+cosTheta) > 0.0001 then
  285.             local theta = math.acos(-cosTheta)
  286.             local invSinTheta = 1/math.sin(theta)
  287.             startInterp = math.sin((t-1)*theta)*invSinTheta
  288.             finishInterp = math.sin(t*theta)*invSinTheta
  289.         else
  290.             startInterp = t-1
  291.             finishInterp = t
  292.         end
  293.     end
  294.     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
  295. end
  296.  
  297. function Clerp(a,b,t)
  298.     local qa = {QuaternionFromCFrame(a)}
  299.     local qb = {QuaternionFromCFrame(b)}
  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 m11 > m00 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 return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  332.         end
  333.     end
  334. end
  335.  
  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.  
  348.  
  349. local function CFrameFromTopBack(at, top, back)
  350.     local right = top:Cross(back)
  351.     return CFrame.new(
  352.         at.x, at.y, at.z,
  353.         right.x, top.x, back.x,
  354.         right.y, top.y, back.y,
  355.         right.z, top.z, back.z
  356.     )
  357. end
  358.  
  359. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  360.     return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or math.huge)), Ignore)
  361. end
  362.  
  363. local destroy_animate = true
  364. function animation(sine)
  365.     if not attack then
  366.         local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  367.         local hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  368.         if hitfloor then
  369.             if Character:FindFirstChild("Animate") and destroy_animate then
  370.                 destroy_animate=false
  371.                 wait(1)
  372.                 Character:FindFirstChild("Animate"):Destroy()
  373.             end
  374.         end
  375.         if RootPart.Velocity.y > 1 and hitfloor==nil then
  376.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine/25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  377.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine/25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  378.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine/25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  379.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  380.             RW.C0=Clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine/25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  381.             LW.C0=Clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine/25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  382.         elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  383.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine/25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  384.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine/25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  385.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine/25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  386.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  387.             RW.C0=Clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine/25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  388.             LW.C0=Clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine/25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  389.         elseif torvel<1 and hitfloor~=nil then
  390.             --idle
  391.             RH.C0=Clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  392.             LH.C0=Clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  393.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  394.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(22.5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  395.             RW.C0=Clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  396.             LW.C0=Clerp(LW.C0,cf(-1.25,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(75 - 1 * math.cos(sine / 8)),math.rad(0),math.rad(20)),.1)
  397.         elseif torvel>2 and hitfloor~=nil then
  398.             --Walk
  399.             RH.C0=Clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  400.             LH.C0=Clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  401.             RootJoint.C0=Clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  402.             Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  403.             RW.C0=Clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 10 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  404.             LW.C0=Clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1)
  405.         end
  406.  
  407.     end
  408. end
  409.  
  410. game:GetService("RunService").Heartbeat:Connect(function(delta)
  411.     music:Resume()
  412.     if Humanoid.MaxHealth < 999 then
  413.         Humanoid.MaxHealth = 999
  414.     end
  415.     if Humanoid.Health ~=Humanoid.MaxHealth then
  416.         Humanoid.Health =Humanoid.MaxHealth
  417.     end
  418.     for i,v in pairs(swordmodel:GetChildren()) do
  419.         if v:IsA("BasePart") then
  420.             v.CanCollide = false
  421.         end
  422.     end
  423.     currentsine = currentsine + (25*delta)
  424.     animation(currentsine)
  425. end)
  426. NLS(
  427.     [=[
  428.     local player = owner or game:GetService("Players").LocalPlayer
  429.     local keylist={
  430.         ["n"] = "Teleport"
  431.     }
  432.     local needargs = {
  433.         ["Teleport"] = "Hit"
  434.     }
  435.     local mouse = player:GetMouse()
  436.     mouse.KeyDown:Connect(function(k)
  437.         if keylist[k] then
  438.             if script.Parent:FindFirstChild("Skill_Folder") then
  439.                 if script.Parent.Skill_Folder:FindFirstChild(keylist[k]) then
  440.                     script.Parent.Skill_Folder:FindFirstChild(keylist[k]):FireServer(mouse[needargs[keylist[k]]])
  441.                 end
  442.             end
  443.         end
  444.     end)
  445.     ]=]
  446. ,script)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement