thatonepuggo

P R I D E B R I C C [roblox FE]

Aug 19th, 2020 (edited)
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.60 KB | None | 0 0
  1. --[[
  2. ---------------------------------
  3. ./ P R I D E B R I C C \.
  4. '\ /'
  5. ---------------------------------
  6. --]]
  7. local plr = owner
  8.  
  9.  
  10. --Converted with ttyyuu12345's model to script plugin v4
  11. function sandbox(var,func)
  12. local env = getfenv(func)
  13. local newenv = setmetatable({},{
  14. __index = function(self,k)
  15. if k=="script" then
  16. return var
  17. else
  18. return env[k]
  19. end
  20. end,
  21. })
  22. setfenv(func,newenv)
  23. return func
  24. end
  25. cors = {}
  26. mas = Instance.new("Model",game:GetService("Lighting"))
  27. Tool0 = Instance.new("Tool")
  28. Part1 = Instance.new("Part")
  29. Script2 = Instance.new("Script")
  30. Sound3 = Instance.new("Sound")
  31. Sound4 = Instance.new("Sound")
  32. Sound5 = Instance.new("Sound")
  33. Script6 = Instance.new("Script")
  34. Tool0.Name = "pridebricc"
  35. Tool0.Parent = plr.Character
  36. Tool0.TextureId = "rbxassetid://1505410801"
  37. Tool0.Grip = CFrame.new(0.0227543004, -0.00938914716, 0.371580482, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  38. Tool0.GripPos = Vector3.new(0.0227543004, -0.00938914716, 0.371580482)
  39. Tool0.ToolTip = "cause why not"
  40. Part1.Name = "Handle"
  41. Part1.Parent = Tool0
  42. Part1.Size = Vector3.new(0.899999976, 0.899999976, 0.899999976)
  43. Part1.BottomSurface = Enum.SurfaceType.Smooth
  44. Part1.Material = Enum.Material.Neon
  45. Part1.TopSurface = Enum.SurfaceType.Smooth
  46. Script2.Parent = Part1
  47. table.insert(cors,sandbox(Script2,function()
  48. local Brick = script.Parent --Change To Brick
  49. local speed = 10 --Change to speed you want
  50. while true do
  51. for i = 0,1,0.001*speed do
  52. Brick.Color = Color3.fromHSV(i,1,1) --creates a color using i
  53. wait()
  54. end
  55. end
  56. end))
  57. Sound3.Name = "SwordLunge"
  58. Sound3.Parent = Part1
  59. Sound3.SoundId = "http://www.roblox.com/asset/?id=12222208"
  60. Sound3.Volume = 0.60000002384186
  61. Sound4.Name = "SwordSlash"
  62. Sound4.Parent = Part1
  63. Sound4.SoundId = "http://www.roblox.com/asset/?id=12222216"
  64. Sound4.Volume = 0.69999998807907
  65. Sound5.Name = "Unsheath"
  66. Sound5.Parent = Part1
  67. Sound5.SoundId = "http://www.roblox.com/asset/?id=12222225"
  68. Sound5.Volume = 1
  69. Script6.Name = "SwordScript"
  70. Script6.Parent = Tool0
  71. table.insert(cors,sandbox(Script6,function()
  72. --Rescripted by Luckymaxer
  73. --EUROCOW WAS HERE BECAUSE I MADE THE PARTICLES AND THEREFORE THIS ENTIRE SWORD PRETTY AND LOOK PRETTY WORDS AND I'D LIKE TO DEDICATE THIS TO MY FRIENDS AND HI LUCKYMAXER PLS FIX SFOTH SWORDS TY LOVE Y'ALl
  74. --Updated for R15 avatars by StarWars
  75. --Re-updated by TakeoHonorable
  76.  
  77. local run = game:GetService("RunService")
  78. Tool = script.Parent
  79. Handle = Tool:WaitForChild("Handle")
  80.  
  81. function Create(ty)
  82. return function(data)
  83. local obj = Instance.new(ty)
  84. for k, v in pairs(data) do
  85. if type(k) == 'number' then
  86. v.Parent = obj
  87. else
  88. obj[k] = v
  89. end
  90. end
  91. return obj
  92. end
  93. end
  94.  
  95. local BaseUrl = "rbxassetid://"
  96.  
  97. Players = game:GetService("Players")
  98. Debris = game:GetService("Debris")
  99. RunService = game:GetService("RunService")
  100.  
  101. DamageValues = {
  102. BaseDamage = 5,
  103. SlashDamage = 1,
  104. LungeDamage = 30
  105. }
  106.  
  107. --For R15 avatars
  108. Animations = {
  109. R15Slash = 522635514,
  110. R15Lunge = 522638767
  111. }
  112.  
  113. Damage = DamageValues.BaseDamage
  114.  
  115. Grips = {
  116. Up = CFrame.new(0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0),
  117. Out = CFrame.new(0, 0, 0, 0, 1, 0, 1, -0, 0, 0, 0, -1)
  118. }
  119.  
  120. Sounds = {
  121. Slash = Handle:WaitForChild("SwordSlash"),
  122. Lunge = Handle:WaitForChild("SwordLunge"),
  123. Unsheath = Handle:WaitForChild("Unsheath")
  124. }
  125.  
  126. ToolEquipped = false
  127.  
  128. --For Omega Rainbow Katana thumbnail to display a lot of particles.
  129. for i, v in pairs(Handle:GetChildren()) do
  130. if v:IsA("ParticleEmitter") then
  131. v.Rate = 20
  132. end
  133. end
  134.  
  135. Tool.Grip = Grips.Up
  136. Tool.Enabled = true
  137.  
  138. function TagHumanoid(humanoid, player)
  139. local Creator_Tag = Instance.new("ObjectValue")
  140. Creator_Tag.Name = "creator"
  141. Creator_Tag.Value = player
  142. Debris:AddItem(Creator_Tag, 2)
  143. Creator_Tag.Parent = humanoid
  144. end
  145.  
  146. function UntagHumanoid(humanoid)
  147. for i, v in pairs(humanoid:GetChildren()) do
  148. if v:IsA("ObjectValue") and v.Name == "creator" then
  149. v:Destroy()
  150. end
  151. end
  152. end
  153.  
  154. function Blow(Hit)
  155. if not Hit or not Hit.Parent or not CheckIfAlive() or not ToolEquipped then
  156. return
  157. end
  158. local RightArm = Character:FindFirstChild("Right Arm") or Character:FindFirstChild("RightHand")
  159. if not RightArm then
  160. return
  161. end
  162. local RightGrip = RightArm:FindFirstChild("RightGrip")
  163. if not RightGrip or (RightGrip.Part0 ~= Handle and RightGrip.Part1 ~= Handle) then
  164. return
  165. end
  166. local character = Hit.Parent
  167. if character == Character then
  168. return
  169. end
  170. local humanoid = character:FindFirstChildOfClass("Humanoid")
  171. if not humanoid or humanoid.Health == 0 then
  172. UntagHumanoid(humanoid)
  173. TagHumanoid(humanoid, Player)
  174. humanoid:destroy()
  175. game.Debris:AddItem(Hit:FindFirstAncestorOfClass("Model"),5)
  176. local fold = Instance.new("Folder",Hit:FindFirstAncestorOfClass("Model"))
  177. for i,v in pairs(Hit:FindFirstAncestorOfClass("Model"):GetChildren()) do
  178. if v:IsA("Part") or v:IsA("MeshPart") then
  179.  
  180. local clone = Instance.new("Part",fold)
  181. clone.Name = v.Name
  182. clone.Material = "Neon"
  183. clone.Anchored = true
  184. clone.CFrame = v.CFrame
  185. clone.CanCollide = false
  186. if v.Name ~= "Head" then
  187. clone.Size = v.Size
  188. else
  189. clone.Size = v.Size - Vector3.new(v.Size.Y,0,0)
  190. end
  191. local change = false
  192. v:Destroy()
  193.  
  194. run.Heartbeat:Connect(function()
  195. --rainbow effect loop
  196.  
  197. for i = 0,1,0.001*10 do
  198. if change == false then
  199. change = true
  200. clone.Color = Color3.fromHSV(i,1,1) --creates a color using i
  201. wait()
  202. change = false
  203. end
  204. end
  205.  
  206. end)
  207. end
  208. end
  209. return
  210. end
  211. local player = Players:GetPlayerFromCharacter(character)
  212. if player and (player == Player) then
  213. return
  214. end
  215.  
  216.  
  217. end
  218.  
  219. function Attack()
  220. Damage = DamageValues.SlashDamage
  221. Sounds.Slash:Play()
  222.  
  223. if Humanoid then
  224. if Humanoid.RigType == Enum.HumanoidRigType.R6 then
  225. local Anim = Instance.new("StringValue")
  226. Anim.Name = "toolanim"
  227. Anim.Value = "Slash"
  228. Anim.Parent = Tool
  229. elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
  230. local Anim = Tool:FindFirstChild("R15Slash")
  231. if Anim then
  232. local Track = Humanoid:LoadAnimation(Anim)
  233. Track:Play(0)
  234. end
  235. end
  236. end
  237. end
  238.  
  239. function Lunge()
  240. Damage = DamageValues.LungeDamage
  241.  
  242. Sounds.Lunge:Play()
  243.  
  244. if Humanoid then
  245. if Humanoid.RigType == Enum.HumanoidRigType.R6 then
  246. local Anim = Instance.new("StringValue")
  247. Anim.Name = "toolanim"
  248. Anim.Value = "Lunge"
  249. Anim.Parent = Tool
  250. elseif Humanoid.RigType == Enum.HumanoidRigType.R15 then
  251. local Anim = Tool:FindFirstChild("R15Lunge")
  252. if Anim then
  253. local Track = Humanoid:LoadAnimation(Anim)
  254. Track:Play(0)
  255. end
  256. end
  257. end
  258. --[[
  259. if CheckIfAlive() then
  260. local Force = Instance.new("BodyVelocity")
  261. Force.velocity = Vector3.new(0, 10, 0)
  262. Force.maxForce = Vector3.new(0, 4000, 0)
  263. Debris:AddItem(Force, 0.4)
  264. Force.Parent = Torso
  265. end
  266. ]]
  267.  
  268. wait(0.2)
  269. Tool.Grip = Grips.Out
  270. wait(0.6)
  271. Tool.Grip = Grips.Up
  272.  
  273. Damage = DamageValues.SlashDamage
  274. end
  275.  
  276. Tool.Enabled = true
  277. LastAttack = 0
  278.  
  279. function Activated()
  280. if not Tool.Enabled or not ToolEquipped or not CheckIfAlive() then
  281. return
  282. end
  283. Tool.Enabled = false
  284. local Tick = RunService.Stepped:wait()
  285. if (Tick - LastAttack < 0.2) then
  286. Lunge()
  287. else
  288. Attack()
  289. end
  290. LastAttack = Tick
  291. --wait(0.5)
  292. Damage = DamageValues.BaseDamage
  293. local SlashAnim = (Tool:FindFirstChild("R15Slash") or Create("Animation"){
  294. Name = "R15Slash",
  295. AnimationId = BaseUrl .. Animations.R15Slash,
  296. Parent = Tool
  297. })
  298.  
  299. local LungeAnim = (Tool:FindFirstChild("R15Lunge") or Create("Animation"){
  300. Name = "R15Lunge",
  301. AnimationId = BaseUrl .. Animations.R15Lunge,
  302. Parent = Tool
  303. })
  304. Tool.Enabled = true
  305. end
  306.  
  307. function CheckIfAlive()
  308. return (((Player and Player.Parent and Character and Character.Parent and Humanoid and Humanoid.Parent and Humanoid.Health > 0 and Torso and Torso.Parent) and true) or false)
  309. end
  310.  
  311. function Equipped()
  312. Character = Tool.Parent
  313. Player = Players:GetPlayerFromCharacter(Character)
  314. Humanoid = Character:FindFirstChildOfClass("Humanoid")
  315. Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("HumanoidRootPart")
  316. if not CheckIfAlive() then
  317. return
  318. end
  319. ToolEquipped = true
  320. Sounds.Unsheath:Play()
  321. end
  322.  
  323. function Unequipped()
  324. Tool.Grip = Grips.Up
  325. ToolEquipped = false
  326. end
  327.  
  328. Tool.Activated:Connect(Activated)
  329. Tool.Equipped:Connect(Equipped)
  330. Tool.Unequipped:Connect(Unequipped)
  331.  
  332. Connection = Handle.Touched:Connect(Blow)
  333. end))
  334. for i,v in pairs(mas:GetChildren()) do
  335. v.Parent = workspace
  336. pcall(function() v:MakeJoints() end)
  337. end
  338. mas:Destroy()
  339. for i,v in pairs(cors) do
  340. spawn(function()
  341. pcall(v)
  342. end)
  343. end
  344.  
Add Comment
Please, Sign In to add comment