Advertisement
Tetezaza1542

TOY มีด

Aug 10th, 2018
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.33 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,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5. --[[ Converted by WafflesAreVeryGood(Nobody#3907 on discord) ]]--
  6. local plr=game.Players.LocalPlayer
  7. local mouse=plr:GetMouse()
  8. repeat wait() until plr.Character
  9. wait(3)
  10. local char=plr.Character
  11. local hum=char:WaitForChild("Humanoid")
  12. local torso=char:WaitForChild("Torso")
  13. local rarm=char:WaitForChild("Right Arm")
  14. local hrp=char:WaitForChild("HumanoidRootPart")
  15. local tool=Instance.new("Tool")
  16. tool.Name = "Toy Knife"
  17. tool.GripForward = Vector3.new(0,0,-1)
  18. tool.GripRight = Vector3.new(1,0,0)
  19. tool.ToolTip = "Toy Knife: Used by Patience"
  20. tool.CanBeDropped = false
  21. tool.ManualActivationOnly = false
  22. tool.RequiresHandle = false
  23. tool.Enabled = true
  24. tool.Parent = plr.Backpack
  25.  
  26.  
  27.  
  28. --Converted with ttyyuu12345's model to script plugin v4
  29. function sandbox(var,func)
  30. local env = getfenv(func)
  31. local newenv = setmetatable({},{
  32. __index = function(self,k)
  33. if k=="script" then
  34. return var
  35. else
  36. return env[k]
  37. end
  38. end,
  39. })
  40. setfenv(func,newenv)
  41. return func
  42. end
  43. cors = {}
  44. mas = Instance.new("Model",game:GetService("Lighting"))
  45. Folder0 = Instance.new("Folder")
  46. Part1 = Instance.new("Part")
  47. SpecialMesh2 = Instance.new("SpecialMesh")
  48. ParticleEmitter3 = Instance.new("ParticleEmitter")
  49. Part4 = Instance.new("Part")
  50. ParticleEmitter5 = Instance.new("ParticleEmitter")
  51. Model6 = Instance.new("Model")
  52. Part7 = Instance.new("Part")
  53. Weld8 = Instance.new("Weld")
  54. Part9 = Instance.new("Part")
  55. SpecialMesh10 = Instance.new("SpecialMesh")
  56. Weld11 = Instance.new("Weld")
  57. Part12 = Instance.new("Part")
  58. Weld13 = Instance.new("Weld")
  59. Part14 = Instance.new("Part")
  60. Weld15 = Instance.new("Weld")
  61. Part16 = Instance.new("Part")
  62. Part17 = Instance.new("Part")
  63. SpecialMesh18 = Instance.new("SpecialMesh")
  64. Weld19 = Instance.new("Weld")
  65. Part20 = Instance.new("Part")
  66. SpecialMesh21 = Instance.new("SpecialMesh")
  67. Weld22 = Instance.new("Weld")
  68. Part23 = Instance.new("Part")
  69. SpecialMesh24 = Instance.new("SpecialMesh")
  70. Weld25 = Instance.new("Weld")
  71. Part26 = Instance.new("Part")
  72. SpecialMesh27 = Instance.new("SpecialMesh")
  73. Weld28 = Instance.new("Weld")
  74. Part29 = Instance.new("Part")
  75. SpecialMesh30 = Instance.new("SpecialMesh")
  76. Weld31 = Instance.new("Weld")
  77. Part32 = Instance.new("Part")
  78. SpecialMesh33 = Instance.new("SpecialMesh")
  79. Weld34 = Instance.new("Weld")
  80. Part35 = Instance.new("Part")
  81. Weld36 = Instance.new("Weld")
  82. Part37 = Instance.new("Part")
  83. Weld38 = Instance.new("Weld")
  84. Sound39 = Instance.new("Sound")
  85. Animation40 = Instance.new("Animation")
  86. Animation41 = Instance.new("Animation")
  87. Folder0.Parent = mas
  88. Part1.Name = "DSlash"
  89. Part1.Parent = Folder0
  90. Part1.Material = Enum.Material.Neon
  91. Part1.BrickColor = BrickColor.new("Really red")
  92. Part1.Anchored = true
  93. Part1.CanCollide = false
  94. Part1.Size = Vector3.new(0.486999989, 5.19999981, 0.31099999)
  95. Part1.CFrame = CFrame.new(22.1118927, 166.745255, -2483.23218, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  96. Part1.BottomSurface = Enum.SurfaceType.Smooth
  97. Part1.TopSurface = Enum.SurfaceType.Smooth
  98. Part1.Color = Color3.new(1, 0, 0)
  99. Part1.Position = Vector3.new(22.1118927, 166.745255, -2483.23218)
  100. Part1.Color = Color3.new(1, 0, 0)
  101. SpecialMesh2.Parent = Part1
  102. SpecialMesh2.MeshType = Enum.MeshType.Sphere
  103. ParticleEmitter3.Name = "Slash"
  104. ParticleEmitter3.Parent = Part1
  105. ParticleEmitter3.Transparency = NumberSequence.new(0,0,1)
  106. ParticleEmitter3.Rotation = NumberRange.new(-180, 180)
  107. ParticleEmitter3.Size = NumberSequence.new(1.5,0)
  108. ParticleEmitter3.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  109. ParticleEmitter3.LightEmission = 1
  110. ParticleEmitter3.Texture = "http://www.roblox.com/asset/?id=298319954"
  111. ParticleEmitter3.ZOffset = 1
  112. ParticleEmitter3.Lifetime = NumberRange.new(0, 0)
  113. ParticleEmitter3.Rate = 500
  114. ParticleEmitter3.RotSpeed = NumberRange.new(100, 100)
  115. ParticleEmitter3.Speed = NumberRange.new(1, 1)
  116. ParticleEmitter3.VelocitySpread = 180
  117. ParticleEmitter3.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0))
  118. Part4.Name = "Eye"
  119. Part4.Parent = Folder0
  120. Part4.Transparency = 1
  121. Part4.Anchored = true
  122. Part4.CanCollide = false
  123. Part4.FormFactor = Enum.FormFactor.Custom
  124. Part4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  125. Part4.CFrame = CFrame.new(-9.60000038, 169.899979, -2436.89941, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  126. Part4.Position = Vector3.new(-9.60000038, 169.899979, -2436.89941)
  127. ParticleEmitter5.Name = "Flame"
  128. ParticleEmitter5.Parent = Part4
  129. ParticleEmitter5.Transparency = NumberSequence.new(0.69999998807907,0.89999997615814,1)
  130. ParticleEmitter5.Rotation = NumberRange.new(-180, 180)
  131. ParticleEmitter5.Size = NumberSequence.new(0.30000001192093,0)
  132. ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.0392157, 0.0392157),Color3.new(1, 0.0392157, 0.0392157))
  133. ParticleEmitter5.LightEmission = 1
  134. ParticleEmitter5.Texture = "http://www.roblox.com/asset/?id=134531489"
  135. ParticleEmitter5.Lifetime = NumberRange.new(0, 0)
  136. ParticleEmitter5.Rate = 500
  137. ParticleEmitter5.Speed = NumberRange.new(0, 0)
  138. ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.0392157, 0.0392157),Color3.new(1, 0.0392157, 0.0392157))
  139. Model6.Name = "KnifeModel"
  140. Model6.Parent = Folder0
  141. Part7.Parent = Model6
  142. Part7.BrickColor = BrickColor.new("Pastel violet")
  143. Part7.Size = Vector3.new(0.349999964, 0.684999943, 0.0500000007)
  144. Part7.CFrame = CFrame.new(-84.8525009, 3.97503614, -217.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  145. Part7.BottomSurface = Enum.SurfaceType.Smooth
  146. Part7.TopSurface = Enum.SurfaceType.Smooth
  147. Part7.Color = Color3.new(0.694118, 0.654902, 1)
  148. Part7.Position = Vector3.new(-84.8525009, 3.97503614, -217.25)
  149. Part7.Color = Color3.new(0.694118, 0.654902, 1)
  150. Weld8.Parent = Part7
  151. Weld8.C0 = CFrame.new(84.8525009, -3.97503614, 217.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  152. Weld8.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  153. Weld8.Part0 = Part7
  154. Weld8.Part1 = Part16
  155. Part9.Parent = Model6
  156. Part9.BrickColor = BrickColor.new("Pastel violet")
  157. Part9.Rotation = Vector3.new(-90, 60, 90)
  158. Part9.Size = Vector3.new(0.0500000007, 0.180000007, 0.300000012)
  159. Part9.CFrame = CFrame.new(-85.1249161, 4.15473557, -217.250015, -9.9347659e-08, -0.500000179, 0.866025329, 0, 0.866025329, 0.500000179, -1, 4.96738473e-08, -8.60375877e-08)
  160. Part9.BottomSurface = Enum.SurfaceType.Smooth
  161. Part9.TopSurface = Enum.SurfaceType.Smooth
  162. Part9.Color = Color3.new(0.694118, 0.654902, 1)
  163. Part9.Position = Vector3.new(-85.1249161, 4.15473557, -217.250015)
  164. Part9.Orientation = Vector3.new(-30, 90, 0)
  165. Part9.Color = Color3.new(0.694118, 0.654902, 1)
  166. SpecialMesh10.Parent = Part9
  167. SpecialMesh10.MeshType = Enum.MeshType.Wedge
  168. Weld11.Parent = Part9
  169. Weld11.C0 = CFrame.new(-217.250015, -46.1605644, 71.6429443, -9.9347659e-08, 0, -1, -0.500000179, 0.866025329, 4.96738473e-08, 0.866025329, 0.500000179, -8.60375877e-08)
  170. Weld11.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  171. Weld11.Part0 = Part9
  172. Weld11.Part1 = Part16
  173. Part12.Parent = Model6
  174. Part12.BrickColor = BrickColor.new("Pastel violet")
  175. Part12.Rotation = Vector3.new(0, 90, 0)
  176. Part12.Size = Vector3.new(0.0500000007, 0.199999988, 0.0500000268)
  177. Part12.CFrame = CFrame.new(-85.2249985, 3.74500012, -217.25, -9.9347659e-08, 0, 1, 0, 1, 0, -1, 0, -9.9347659e-08)
  178. Part12.BottomSurface = Enum.SurfaceType.Smooth
  179. Part12.TopSurface = Enum.SurfaceType.Smooth
  180. Part12.Color = Color3.new(0.694118, 0.654902, 1)
  181. Part12.Position = Vector3.new(-85.2249985, 3.74500012, -217.25)
  182. Part12.Orientation = Vector3.new(0, 90, 0)
  183. Part12.Color = Color3.new(0.694118, 0.654902, 1)
  184. Weld13.Parent = Part12
  185. Weld13.C0 = CFrame.new(-217.250015, -3.74500012, 85.2249756, -9.9347659e-08, 0, -1, 0, 1, 0, 1, 0, -9.9347659e-08)
  186. Weld13.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  187. Weld13.Part0 = Part12
  188. Weld13.Part1 = Part16
  189. Part14.Parent = Model6
  190. Part14.BrickColor = BrickColor.new("Pastel violet")
  191. Part14.Rotation = Vector3.new(0, 0, -30)
  192. Part14.Size = Vector3.new(0.159999952, 0.184999928, 0.0500000007)
  193. Part14.CFrame = CFrame.new(-85.1071472, 3.99762344, -217.25, 0.866025567, 0.499999613, 0, -0.499999613, 0.866025567, 0, 0, 0, 1)
  194. Part14.BottomSurface = Enum.SurfaceType.Smooth
  195. Part14.TopSurface = Enum.SurfaceType.Smooth
  196. Part14.Color = Color3.new(0.694118, 0.654902, 1)
  197. Part14.Position = Vector3.new(-85.1071472, 3.99762344, -217.25)
  198. Part14.Orientation = Vector3.new(0, 0, -30)
  199. Part14.Color = Color3.new(0.694118, 0.654902, 1)
  200. Weld15.Parent = Part14
  201. Weld15.C0 = CFrame.new(75.7037811, 39.0914993, 217.25, 0.866025567, -0.499999613, 0, 0.499999613, 0.866025567, 0, 0, 0, 1)
  202. Weld15.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  203. Weld15.Part0 = Part14
  204. Weld15.Part1 = Part16
  205. Part16.Name = "Handle"
  206. Part16.Parent = Model6
  207. Part16.BrickColor = BrickColor.new("Really black")
  208. Part16.Size = Vector3.new(0.490999997, 1.28900003, 0.0809999853)
  209. Part16.CFrame = CFrame.new(-84.900032, 1.64453602, -217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  210. Part16.BottomSurface = Enum.SurfaceType.Smooth
  211. Part16.TopSurface = Enum.SurfaceType.Smooth
  212. Part16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  213. Part16.Position = Vector3.new(-84.900032, 1.64453602, -217.199951)
  214. Part16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  215. Part17.Parent = Model6
  216. Part17.BrickColor = BrickColor.new("Pastel violet")
  217. Part17.Rotation = Vector3.new(-90, -75, -90)
  218. Part17.Size = Vector3.new(0.0500000007, 0.349999994, 0.309999973)
  219. Part17.CFrame = CFrame.new(-85.0265884, 3.94403839, -217.25, 1.86770436e-07, 0.258818626, -0.965925872, 0, 0.965925872, 0.258818626, 1, -4.83396612e-08, 1.80406403e-07)
  220. Part17.BottomSurface = Enum.SurfaceType.Smooth
  221. Part17.TopSurface = Enum.SurfaceType.Smooth
  222. Part17.Color = Color3.new(0.694118, 0.654902, 1)
  223. Part17.Position = Vector3.new(-85.0265884, 3.94403839, -217.25)
  224. Part17.Orientation = Vector3.new(-15, -90, 0)
  225. Part17.Color = Color3.new(0.694118, 0.654902, 1)
  226. SpecialMesh18.Parent = Part17
  227. SpecialMesh18.MeshType = Enum.MeshType.Wedge
  228. Weld19.Parent = Part17
  229. Weld19.C0 = CFrame.new(217.250015, 18.1968079, -83.1501389, 1.86770436e-07, 0, 1, 0.258818626, 0.965925872, -4.83396612e-08, -0.965925872, 0.258818626, 1.80406403e-07)
  230. Weld19.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  231. Weld19.Part0 = Part17
  232. Weld19.Part1 = Part16
  233. Part20.Parent = Model6
  234. Part20.BrickColor = BrickColor.new("Pastel violet")
  235. Part20.Rotation = Vector3.new(0, 90, 0)
  236. Part20.Size = Vector3.new(0.0500000007, 0.579999983, 0.25000003)
  237. Part20.CFrame = CFrame.new(-85.125, 3.93500018, -217.25, -9.9347659e-08, 0, 1, 0, 1, 0, -1, 0, -9.9347659e-08)
  238. Part20.BottomSurface = Enum.SurfaceType.Smooth
  239. Part20.TopSurface = Enum.SurfaceType.Smooth
  240. Part20.Color = Color3.new(0.694118, 0.654902, 1)
  241. Part20.Position = Vector3.new(-85.125, 3.93500018, -217.25)
  242. Part20.Orientation = Vector3.new(0, 90, 0)
  243. Part20.Color = Color3.new(0.694118, 0.654902, 1)
  244. SpecialMesh21.Parent = Part20
  245. SpecialMesh21.MeshType = Enum.MeshType.Wedge
  246. Weld22.Parent = Part20
  247. Weld22.C0 = CFrame.new(-217.250015, -3.93500018, 85.1249771, -9.9347659e-08, 0, -1, 0, 1, 0, 1, 0, -9.9347659e-08)
  248. Weld22.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  249. Weld22.Part0 = Part20
  250. Weld22.Part1 = Part16
  251. Part23.Parent = Model6
  252. Part23.BrickColor = BrickColor.new("Really black")
  253. Part23.Rotation = Vector3.new(0, 90, 0)
  254. Part23.Size = Vector3.new(0.0910000056, 0.288999975, 0.180999994)
  255. Part23.CFrame = CFrame.new(-85.150032, 1.04453576, -217.199951, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  256. Part23.BottomSurface = Enum.SurfaceType.Smooth
  257. Part23.TopSurface = Enum.SurfaceType.Smooth
  258. Part23.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  259. Part23.Position = Vector3.new(-85.150032, 1.04453576, -217.199951)
  260. Part23.Orientation = Vector3.new(0, 90, 0)
  261. Part23.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  262. SpecialMesh24.Parent = Part23
  263. SpecialMesh24.MeshType = Enum.MeshType.Cylinder
  264. Weld25.Parent = Part23
  265. Weld25.C0 = CFrame.new(-217.199951, -1.04453588, 85.1500244, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
  266. Weld25.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  267. Weld25.Part0 = Part23
  268. Weld25.Part1 = Part16
  269. Part26.Parent = Model6
  270. Part26.BrickColor = BrickColor.new("Really black")
  271. Part26.Size = Vector3.new(0.490999997, 0.0889999866, 0.0809999853)
  272. Part26.CFrame = CFrame.new(-84.900032, 2.29453611, -217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  273. Part26.BottomSurface = Enum.SurfaceType.Smooth
  274. Part26.TopSurface = Enum.SurfaceType.Smooth
  275. Part26.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  276. Part26.Position = Vector3.new(-84.900032, 2.29453611, -217.199951)
  277. Part26.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  278. SpecialMesh27.Parent = Part26
  279. SpecialMesh27.MeshType = Enum.MeshType.Cylinder
  280. Weld28.Parent = Part26
  281. Weld28.C0 = CFrame.new(84.900032, -2.29453611, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  282. Weld28.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  283. Weld28.Part0 = Part26
  284. Weld28.Part1 = Part16
  285. Part29.Parent = Model6
  286. Part29.BrickColor = BrickColor.new("Pastel violet")
  287. Part29.Rotation = Vector3.new(-90, 45, 90)
  288. Part29.Size = Vector3.new(0.0500000007, 0.200000003, 0.300000012)
  289. Part29.CFrame = CFrame.new(-85.2451782, 3.82501221, -217.250015, -9.9347659e-08, -0.707107067, 0.707106471, 0, 0.707106471, 0.707107067, -1, 7.02494347e-08, -7.02493708e-08)
  290. Part29.BottomSurface = Enum.SurfaceType.Smooth
  291. Part29.TopSurface = Enum.SurfaceType.Smooth
  292. Part29.Color = Color3.new(0.694118, 0.654902, 1)
  293. Part29.Position = Vector3.new(-85.2451782, 3.82501221, -217.250015)
  294. Part29.Orientation = Vector3.new(-45, 90, 0)
  295. Part29.Color = Color3.new(0.694118, 0.654902, 1)
  296. SpecialMesh30.Parent = Part29
  297. SpecialMesh30.MeshType = Enum.MeshType.Wedge
  298. Weld31.Parent = Part29
  299. Weld31.C0 = CFrame.new(-217.250015, -62.9821434, 57.5727081, -9.9347659e-08, 0, -1, -0.707107067, 0.707106471, 7.02494347e-08, 0.707106471, 0.707107067, -7.02493708e-08)
  300. Weld31.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  301. Weld31.Part0 = Part29
  302. Weld31.Part1 = Part16
  303. Part32.Parent = Model6
  304. Part32.BrickColor = BrickColor.new("Pastel violet")
  305. Part32.Rotation = Vector3.new(0, 90, 0)
  306. Part32.Size = Vector3.new(0.0500000007, 0.200000003, 0.370000035)
  307. Part32.CFrame = CFrame.new(-84.8649979, 4.40500021, -217.25, -9.9347659e-08, 0, 1, 0, 1, 0, -1, 0, -9.9347659e-08)
  308. Part32.BottomSurface = Enum.SurfaceType.Smooth
  309. Part32.TopSurface = Enum.SurfaceType.Smooth
  310. Part32.Color = Color3.new(0.694118, 0.654902, 1)
  311. Part32.Position = Vector3.new(-84.8649979, 4.40500021, -217.25)
  312. Part32.Orientation = Vector3.new(0, 90, 0)
  313. Part32.Color = Color3.new(0.694118, 0.654902, 1)
  314. SpecialMesh33.Parent = Part32
  315. SpecialMesh33.MeshType = Enum.MeshType.Wedge
  316. Weld34.Parent = Part32
  317. Weld34.C0 = CFrame.new(-217.250015, -4.40500021, 84.864975, -9.9347659e-08, 0, -1, 0, 1, 0, 1, 0, -9.9347659e-08)
  318. Weld34.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  319. Weld34.Part0 = Part32
  320. Weld34.Part1 = Part16
  321. Part35.Parent = Model6
  322. Part35.BrickColor = BrickColor.new("Pastel violet")
  323. Part35.Size = Vector3.new(0.594999969, 1.38499987, 0.0500000007)
  324. Part35.CFrame = CFrame.new(-84.9749985, 2.97503614, -217.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  325. Part35.BottomSurface = Enum.SurfaceType.Smooth
  326. Part35.TopSurface = Enum.SurfaceType.Smooth
  327. Part35.Color = Color3.new(0.694118, 0.654902, 1)
  328. Part35.Position = Vector3.new(-84.9749985, 2.97503614, -217.25)
  329. Part35.Color = Color3.new(0.694118, 0.654902, 1)
  330. Weld36.Parent = Part35
  331. Weld36.C0 = CFrame.new(84.9749985, -2.97503614, 217.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  332. Weld36.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  333. Weld36.Part0 = Part35
  334. Weld36.Part1 = Part16
  335. Part37.Name = "Blade"
  336. Part37.Parent = Model6
  337. Part37.BrickColor = BrickColor.new("Pastel violet")
  338. Part37.Transparency = 1
  339. Part37.Size = Vector3.new(0.594999969, 2.23499918, 0.0500000007)
  340. Part37.CFrame = CFrame.new(-84.9749985, 3.40003729, -217.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  341. Part37.BottomSurface = Enum.SurfaceType.Smooth
  342. Part37.TopSurface = Enum.SurfaceType.Smooth
  343. Part37.Color = Color3.new(0.694118, 0.654902, 1)
  344. Part37.Position = Vector3.new(-84.9749985, 3.40003729, -217.25)
  345. Part37.Color = Color3.new(0.694118, 0.654902, 1)
  346. Weld38.Parent = Part37
  347. Weld38.C0 = CFrame.new(84.9749985, -3.40003729, 217.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  348. Weld38.C1 = CFrame.new(84.900032, -1.64453602, 217.199951, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  349. Weld38.Part0 = Part37
  350. Weld38.Part1 = Part16
  351. Sound39.Name = "Slash"
  352. Sound39.Parent = Folder0
  353. Sound39.Pitch = 0.69999998807907
  354. Sound39.SoundId = "rbxassetid://394934205"
  355. Sound39.Volume = 1
  356. Animation40.Name = "GroundStab"
  357. Animation40.Parent = Folder0
  358. Animation40.AnimationId = "https://www.roblox.com/DownStab-item?id=89133529"
  359. Animation41.Name = "SlashAnim"
  360. Animation41.Parent = Folder0
  361. Animation41.AnimationId = "rbxassetid://218504594"
  362. for i,v in pairs(mas:GetChildren()) do
  363. v.Parent = game:GetService("Players").LocalPlayer.Character
  364. pcall(function() v:MakeJoints() end)
  365. end
  366. mas:Destroy()
  367. for i,v in pairs(cors) do
  368. spawn(function()
  369. pcall(v)
  370. end)
  371. end
  372.  
  373.  
  374.  
  375. local important = char.Folder
  376. important.KnifeModel.Parent = tool
  377. important.DSlash.Parent = script
  378. important.Eye.Parent = script
  379. important.Slash.Parent = tool
  380. important.GroundStab.Parent = tool
  381. important.SlashAnim.Parent = tool
  382. important:Destroy()
  383. local slashanim=hum:LoadAnimation(tool.SlashAnim)
  384. local gstab=hum:LoadAnimation(tool.GroundStab)
  385. local equipped=false
  386. local check=false
  387. local dmgcheck=false
  388. local knife
  389. local eye1
  390. local eye2
  391. local kweld
  392. local closest
  393. local hitpos
  394.  
  395. function Damage(mode,mag,proj)
  396. local dmgcheck2=false
  397. if mode=="Normal" then
  398. for _,v in pairs(game.Players:GetPlayers()) do
  399. if v.Character then
  400. local tchar=v.Character
  401. if (torso.Position-tchar.Torso.Position).magnitude<=mag and tchar:FindFirstChildOfClass("Humanoid").Health>0 and tchar~=char then
  402. tchar:FindFirstChildOfClass("Humanoid"):TakeDamage(35)
  403. end
  404. end
  405. end
  406. elseif mode=="Distant" then
  407. proj.Touched:connect(function(hit)
  408. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Name~=plr.Name then
  409. if dmgcheck2==false then
  410. dmgcheck2=true
  411. hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(10)
  412. end
  413. end
  414. end)
  415. end
  416. end
  417.  
  418. function Loop()
  419. coroutine.resume(coroutine.create(function()
  420. while equipped==true do
  421. wait()
  422. end
  423. end))
  424. end
  425.  
  426. function Slash(mode)
  427. dmgcheck=true
  428. if mode=="Normal" or mode=="Distant" then
  429. slashanim:Play()
  430. local slashsfx=tool.Slash:Clone()
  431. slashsfx.Parent=workspace
  432. slashsfx:Play()
  433. game.Debris:AddItem(slashsfx,1)
  434. wait(0.4)
  435. if mode=="Normal" then
  436. Damage("Normal",30)
  437. end
  438. wait(0.3)
  439. if mode=="Distant" then
  440. local obj=script.DSlash:Clone()
  441. obj.Parent=workspace
  442. obj.Anchored=false
  443. obj.CFrame=hrp.CFrame*CFrame.new(1.5,0.5,2.5)
  444. obj.CFrame=CFrame.new(obj.Position,hitpos)*CFrame.Angles(0,math.pi/2,0)
  445. local bv=Instance.new("BodyVelocity",obj)
  446. bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  447. bv.Velocity=(obj.CFrame*CFrame.Angles(0,-math.pi/2,0)).lookVector*350
  448. Damage("Distant",0,obj)
  449. end
  450. elseif mode=="Area" then
  451. gstab:Play()
  452. wait(0.2)
  453. for i=1,180/18 do
  454. kweld.C0=CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90-(i*18)),-math.pi/2,0)
  455. wait()
  456. end
  457. wait(1)
  458. local ef=Instance.new("Part",workspace)
  459. ef.Size=Vector3.new(5,20,20)
  460. ef.Material="Neon"
  461. ef.Transparency=1
  462. ef.BrickColor=BrickColor.new(1,0,0)
  463. ef.CanCollide=false
  464. ef.Anchored=true
  465. ef.CFrame=hrp.CFrame*CFrame.new(0,-5,0)*CFrame.Angles(0,0,math.pi/2)
  466. local efm=Instance.new("SpecialMesh",ef)
  467. efm.MeshType="Cylinder"
  468. for i=1,60 do
  469. ef.Transparency=1-(i/100)
  470. wait()
  471. end
  472. Damage("Normal",50)
  473. coroutine.resume(coroutine.create(function()
  474. wait(2)
  475. for i=1,30 do
  476. ef.Transparency=(1-(60/100))+(i/30)
  477. wait()
  478. end
  479. end))
  480. for i=1,50 do
  481. ef.Size=Vector3.new(5+(i*20),20,20)
  482. wait()
  483. end
  484. for i=1,180/18 do
  485. kweld.C0=CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-270+(i*18)),-math.pi/2,0)
  486. wait()
  487. end
  488. end
  489. dmgcheck=false
  490. end
  491.  
  492. mouse.KeyDown:connect(function(key)
  493. if equipped==true and hum.Health>0 then
  494. if closest==nil then
  495. hitpos=mouse.Hit.p
  496. else
  497. hitpos=closest.Torso.Position
  498. end
  499. if key=="e" then
  500. if check==false then
  501. check=true
  502. hum.WalkSpeed=12
  503. Slash("Normal")
  504. hum.WalkSpeed=32
  505. wait(2)
  506. check=false
  507. end
  508. elseif key=="r" then
  509. if check==false and (hrp.Position-mouse.Hit.p).magnitude<=150 then
  510. check=true
  511. local currentpos=Vector3.new(hrp.Position.X,hrp.Position.Y,hrp.Position.Z)
  512. local bodyp=Instance.new("BodyPosition",hrp)
  513. bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  514. bodyp.D=500
  515. bodyp.Position=mouse.Hit.p+Vector3.new(0,4,0)
  516. local bodygp=Instance.new("BodyGyro",hrp)
  517. bodygp.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  518. bodygp.D=160
  519. bodygp.CFrame=CFrame.new(hrp.Position,mouse.Hit.p)
  520. wait(0.3)
  521. Slash("Normal")
  522. bodyp.Position=currentpos
  523. wait(0.3)
  524. bodyp:Destroy()
  525. bodygp:Destroy()
  526. wait(2.5)
  527. check=false
  528. end
  529. elseif key=="t" then
  530. if check==false then
  531. check=true
  532. hum.WalkSpeed=0
  533. Slash("Distant")
  534. hum.WalkSpeed=30
  535. wait(0.8)
  536. check=false
  537. end
  538. elseif key=="y" then
  539. if check==false then
  540. check=true
  541. hum.WalkSpeed=0
  542. Slash("Area")
  543. hum.WalkSpeed=30
  544. wait(3)
  545. check=false
  546. end
  547. end
  548. end
  549. end)
  550.  
  551. tool.Equipped:connect(function()
  552. if dmgcheck==true then repeat wait() until dmgcheck==false end
  553. equipped=true
  554. knife=tool.KnifeModel:Clone()
  555. knife.Parent=char
  556. knife.Handle.Anchored=false
  557. kweld=Instance.new("Weld",knife.Handle)
  558. kweld.Part0=rarm
  559. kweld.Part1=knife.Handle
  560. kweld.C0=CFrame.new(0,-1,0)*CFrame.Angles(-math.pi/2,-math.pi/2,0)
  561. eye1=script.Eye:Clone()
  562. eye1.Parent=char
  563. eye1.Anchored=false
  564. local eye1f=Instance.new("Weld",eye1)
  565. eye1f.Part0=char.Head
  566. eye1f.Part1=eye1
  567. eye1f.C0=CFrame.new(-0.125,0.22,-0.55)*CFrame.Angles(0,0,math.pi/2)
  568. eye2=script.Eye:Clone()
  569. eye2.Parent=char
  570. eye2.Anchored=false
  571. local eye2f=Instance.new("Weld",eye2)
  572. eye2f.Part0=char.Head
  573. eye2f.Part1=eye2
  574. eye2f.C0=CFrame.new(0.125,0.22,-0.55)*CFrame.Angles(0,0,math.pi/2)
  575. Loop()
  576. end)
  577.  
  578. tool.Unequipped:connect(function()
  579. if dmgcheck==true then repeat wait() until dmgcheck==false end
  580. equipped=false
  581. knife:Destroy()
  582. eye1:Destroy()
  583. eye2:Destroy()
  584. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement