Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createface()
- local Model0 = Instance.new("Model")
- local Part1 = Instance.new("Part")
- local SpecialMesh2 = Instance.new("SpecialMesh")
- local Part3 = Instance.new("Part")
- local Decal4 = Instance.new("Decal")
- local SpecialMesh5 = Instance.new("SpecialMesh")
- local Weld6 = Instance.new("Weld")
- local Weld7 = Instance.new("Weld")
- local Part8 = Instance.new("Part")
- local SpecialMesh9 = Instance.new("SpecialMesh")
- local Weld10 = Instance.new("Weld")
- Model0.Name = "HeadAcc"
- Part1.Name = "Hair"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-10.5516481, 3.84958363, -39.6669617, -0.139173076, 0, 0.990268052, 0, 1, 0, -0.990268052, 0, -0.139173076)
- Part1.Orientation = Vector3.new(0, 98, 0)
- Part1.Position = Vector3.new(-10.551648139954, 3.8495836257935, -39.666961669922)
- Part1.Rotation = Vector3.new(-180, 82, -180)
- Part1.Size = Vector3.new(1, 1, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh2.Name = "SpecialMesh"
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxassetid://6521980205"
- SpecialMesh2.Scale = Vector3.new(0.94999998807907, 0.95999997854233, 0.91000002622604)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=6517665515"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Part3.Name = "Head"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(-10.8355103, 4.5, -39.626709, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part3.Orientation = Vector3.new(0, 90, 0)
- Part3.Position = Vector3.new(-10.835510253906, 4.5, -39.626708984375)
- Part3.Rotation = Vector3.new(0, 90, 0)
- Part3.Size = Vector3.new(2, 1, 1)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Decal4.Name = "Face"
- Decal4.Parent = Part3
- Decal4.Texture = "rbxasset://textures/face.png"
- SpecialMesh5.Parent = Part3
- SpecialMesh5.Scale = Vector3.new(1.25, 1.25, 1.25)
- Weld6.Name = "Hair"
- Weld6.Parent = Part3
- Weld6.C0 = CFrame.new(0.0402526855, -0.650416374, 0.283862114, 0.990268052, 0, 0.139173076, 0, 1, 0, -0.139173076, 0, 0.990268052)
- Weld6.Part0 = Part3
- Weld6.Part1 = Part1
- Weld6.part1 = Part1
- Weld7.Name = "Mask"
- Weld7.Parent = Part3
- Weld7.C0 = CFrame.new(0.000289916992, 0, -0.0448408127, 0.99999994, 0, 0, 0, 1, 0, 0, 0, 0.99999994)
- Weld7.Part0 = Part3
- Weld7.Part1 = Part8
- Weld7.part1 = Part8
- Part8.Name = "Mask"
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(-10.8803511, 4.5, -39.6269989, 0, 0, 0.99999994, 0, 1, 0, -0.99999994, 0, 0)
- Part8.Orientation = Vector3.new(0, 90, 0)
- Part8.Position = Vector3.new(-10.880351066589, 4.5, -39.626998901367)
- Part8.Rotation = Vector3.new(0, 89.980003356934, 0)
- Part8.Size = Vector3.new(1, 1, 1)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh9.Name = "SpecialMesh"
- SpecialMesh9.Parent = Part8
- SpecialMesh9.MeshId = "rbxassetid://5728632913"
- SpecialMesh9.TextureId = "http://www.roblox.com/asset/?id=4809181158"
- SpecialMesh9.MeshType = Enum.MeshType.FileMesh
- Weld10.Name = "Hair"
- Weld10.Parent = Part8
- Weld10.C0 = CFrame.new(0.0399627686, -0.650416374, 0.328702927, 0.990268052, 0, 0.139173076, 0, 1, 0, -0.139173076, 0, 0.990268052)
- Weld10.Part0 = Part8
- Weld10.Part1 = Part1
- Weld10.part1 = Part1
- return Model0
- end
- local mas = Instance.new("Model",game:GetService("Lighting"))
- local Model0 = Instance.new("Model")
- local Part1 = Instance.new("Part")
- local ParticleEmitter2 = Instance.new("ParticleEmitter")
- local Part3 = Instance.new("Part")
- local Weld4 = Instance.new("Weld")
- local Part5 = Instance.new("Part")
- local Weld6 = Instance.new("Weld")
- local SpecialMesh7 = Instance.new("SpecialMesh")
- Model0.Name = "Main"
- Model0.Parent = mas
- Model0.PrimaryPart = Part1
- Part1.Name = "Hitbox"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-65.1884003, 2.34880948, 29.0725231, 1, 0, 0, 0, 1, 4.37113883e-08, 0, -4.37113883e-08, 1)
- Part1.Position = Vector3.new(-65.188400268555, 2.3488094806671, 29.072523117065)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(0.0010000000474975, 0.6583531498909, 11.325116157532)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.CanCollide = false
- Part1.TopSurface = Enum.SurfaceType.Smooth
- ParticleEmitter2.Parent = Part1
- ParticleEmitter2.Speed = NumberRange.new(0, 0)
- ParticleEmitter2.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0.117647, 0.117647, 0.117647))
- ParticleEmitter2.LightInfluence = 1
- ParticleEmitter2.Texture = "rbxassetid://603193846"
- ParticleEmitter2.Transparency = NumberSequence.new(0,1)
- ParticleEmitter2.ZOffset = 1
- ParticleEmitter2.Size = NumberSequence.new(0.3125,0)
- ParticleEmitter2.Acceleration = Vector3.new(0, 5, 0)
- ParticleEmitter2.EmissionDirection = Enum.NormalId.Back
- ParticleEmitter2.Lifetime = NumberRange.new(0.75, 1)
- ParticleEmitter2.Rate = 3000
- Part3.Name = "Handle"
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(-65.2248993, 3.1950767, 37.3521118, 1, 0, 0, 0, 0.985921264, -0.167210802, 0, 0.167210802, 0.985921264)
- Part3.Orientation = Vector3.new(9.6300001144409, 0, 0)
- Part3.Position = Vector3.new(-65.224899291992, 3.1950767040253, 37.352111816406)
- Part3.Rotation = Vector3.new(9.6300001144409, 0, 0)
- Part3.Transparency = 1
- Part3.Size = Vector3.new(1, 2, 1)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.CanCollide = false
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Weld4.Name = "Sword"
- Weld4.Parent = Part3
- Weld4.C0 = CFrame.new(0.0368614197, -0.65113759, -6.00376034, 1, 0, 0, 0, 0, 1, 0, -1, 0)
- Weld4.C1 = CFrame.new(0, 0, 1.20799994, 1, 0, 0, 0, 0.985921264, -0.167210847, 0, 0.167210847, 0.985921264)
- Weld4.Part0 = Part3
- Weld4.Part1 = Part5
- Weld4.part1 = Part5
- Part5.Name = "Sword"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(-65.1880417, 2.34899998, 31.3239994, 1, 0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08)
- Part5.Orientation = Vector3.new(-90, 0, 0)
- Part5.Position = Vector3.new(-65.188041687012, 2.3489999771118, 31.323999404907)
- Part5.Rotation = Vector3.new(-90, 0, 0)
- Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part5.Size = Vector3.new(0.67699998617172, 15.430000305176, 1.5319999456406)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Really black")
- Part5.CanCollide = false
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Really black")
- Weld6.Name = "Hitbox"
- Weld6.Parent = Part5
- Weld6.C0 = CFrame.new(-0.000358581543, 2.25147676, -0.000190496445, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- Weld6.Part0 = Part5
- Weld6.Part1 = Part1
- Weld6.part1 = Part1
- SpecialMesh7.Parent = Part5
- SpecialMesh7.MeshId = "rbxassetid://7513632006"
- SpecialMesh7.MeshType = Enum.MeshType.FileMesh
- local swordmodel = nil
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- swordmodel = v
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- function newshirt()
- local a = Instance.new("Shirt")
- local b = Instance.new("Pants")
- a.ShirtTemplate = "http://www.roblox.com/asset/?id=1210857659"
- b.PantsTemplate = "http://www.roblox.com/asset/?id=1210858273"
- return a,b
- end
- local Player = owner or game:GetService("Players"):WaitForChild("plytalent")
- wait(1)
- local char = Player.Character
- script.Parent = char
- local weldweapon = Instance.new("Weld",char:WaitForChild("Right Arm"))
- weldweapon.Part0 = weldweapon.Parent
- weldweapon.Part1 = swordmodel.Handle
- swordmodel.Parent = char
- local facemodel = createface()
- facemodel.Parent = char
- local weldface = Instance.new("Weld",char:WaitForChild("Head"))
- weldface.Part0 = weldface.Parent
- weldface.Part1 = facemodel.Head
- local shirt, pants = newshirt()
- for _,ac in pairs(char:GetChildren())do
- if ac:IsA("Accessory") or ac:IsA("Shirt") or ac:IsA("Pants") then
- ac:Destroy()
- elseif ac:IsA("BasePart") then
- ac.Color = Color3.new(231/255, 231/255, 236/255)
- end
- end
- shirt.Parent = char
- pants.Parent = char
- Character=Player.Character
- Torso=Character.Torso
- Humanoid=Character.Humanoid
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Neck=Torso.Neck
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- cf = CFrame.new
- angles = CFrame.Angles
- ROOTC0 = RootJoint.C0
- NECKC0 = Torso.Neck.C0
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- cf=CFrame.new
- cn=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- RootCF=euler(-1.57,0,3.14)
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RSH=Character.Torso["Right Shoulder"]
- LSH=Character.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=Character.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=Character["Right Arm"]
- RW.Parent=Character.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=Character.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=Character["Left Arm"]
- LW.Parent=Character.Torso
- local currentsine = 0
- local attack = false
- function teleport(plr,where)
- if plr ~= Player then
- return
- end
- char:SetPrimaryPartCFrame(where*CFrame.new(0,3.5,0))
- end
- local music = Instance.new("Sound",char.HumanoidRootPart)
- music.SoundId = "rbxassetid://6659445380"
- music.Volume = 0.1
- music.Looped = true
- music:Play()
- local skill_folder = Instance.new("Folder",script)
- skill_folder.Name = "Skill_Folder"
- local teleport_remote = Instance.new("RemoteEvent",skill_folder)
- teleport_remote.Name = "Teleport"
- teleport_remote.OnServerEvent:Connect(teleport)
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- 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
- end
- function Clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- 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))
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(
- at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z
- )
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or math.huge)), Ignore)
- end
- local destroy_animate = true
- function animation(sine)
- if not attack then
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if hitfloor then
- if Character:FindFirstChild("Animate") and destroy_animate then
- destroy_animate=false
- wait(1)
- Character:FindFirstChild("Animate"):Destroy()
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- 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)
- 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)
- 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)
- Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
- 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)
- 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)
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- 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)
- 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)
- 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)
- Torso.Neck.C0=Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- 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)
- 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)
- elseif torvel<1 and hitfloor~=nil then
- --idle
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- elseif torvel>2 and hitfloor~=nil then
- --Walk
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- end
- end
- end
- game:GetService("RunService").Heartbeat:Connect(function(delta)
- music:Resume()
- if Humanoid.MaxHealth < 999 then
- Humanoid.MaxHealth = 999
- end
- if Humanoid.Health ~=Humanoid.MaxHealth then
- Humanoid.Health =Humanoid.MaxHealth
- end
- for i,v in pairs(swordmodel:GetChildren()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- end
- end
- currentsine = currentsine + (25*delta)
- animation(currentsine)
- end)
- NLS(
- [=[
- local player = owner or game:GetService("Players").LocalPlayer
- local keylist={
- ["n"] = "Teleport"
- }
- local needargs = {
- ["Teleport"] = "Hit"
- }
- local mouse = player:GetMouse()
- mouse.KeyDown:Connect(function(k)
- if keylist[k] then
- if script.Parent:FindFirstChild("Skill_Folder") then
- if script.Parent.Skill_Folder:FindFirstChild(keylist[k]) then
- script.Parent.Skill_Folder:FindFirstChild(keylist[k]):FireServer(mouse[needargs[keylist[k]]])
- end
- end
- end
- end)
- ]=]
- ,script)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement