Advertisement
ManlyMemeScripter

Meme Krabs Script

Feb 18th, 2018
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. --{{Made by Strazos}}--
  2.  
  3. local p = game.Players.LocalPlayer
  4. local char = p.Character
  5. local larm = char["Left Arm"]
  6. local rarm = char["Right Arm"]
  7. local lleg = char["Left Leg"]
  8. local rleg = char["Right Leg"]
  9. local hed = char.Head
  10. local torso = char.Torso
  11. local hum = char.Humanoid
  12. local weld = Instance.new("Weld",torso)
  13. weld.Part0 = torso
  14.  
  15. larm.Transparency = 1
  16. rarm.Transparency = 1
  17. lleg.Transparency = 1
  18. rleg.Transparency = 1
  19. hed.Transparency = 1
  20. torso.Transparency = 1
  21.  
  22.  
  23. local train = Instance.new("Part",torso)
  24. train.Anchored = true
  25. train.CanCollide = false
  26. train.Size = Vector3.new(5,5,5)
  27. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  28. weld.Part1 = train
  29. weld.C1 = CFrame.new(0,-0.4,0) * CFrame.Angles(0,math.rad(180),0)
  30. train.Anchored = false
  31. local TrainMesh = Instance.new("SpecialMesh",train)
  32. TrainMesh.MeshType = Enum.MeshType.FileMesh
  33. TrainMesh.Scale = Vector3.new(3.6, 3.6, 3.6)
  34. TrainMesh.MeshId = "rbxassetid://442260187"
  35. TrainMesh.TextureId = "rbxassetid://442260192"
  36.  
  37. hum.WalkSpeed = 130;
  38.  
  39.  
  40. for i,v in pairs(char:GetChildren()) do
  41. if v:IsA("Part") then
  42. v.Transparency = 1;
  43. elseif v:IsA("Hat") then
  44. v:Destroy()
  45. elseif v:IsA("Model") then
  46. v:Destroy()
  47. end
  48. end
  49.  
  50.  
  51. local function SFX(id) local s=Instance.new("Sound",torso); s.SoundId = "rbxassetid://"..id; s.Volume = 58439; return s; end
  52. train.Touched:connect(function(p)
  53. if p.Parent then
  54. if p.Parent:IsA("Model") then
  55. if game.Players:FindFirstChild(p.Parent.Name) then
  56. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  57. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  58. local Whistle = SFX(159504677)
  59. Whistle:Play()
  60. end
  61. end
  62. end
  63. end
  64. end)
  65.  
  66. local Music = SFX(290769284)
  67. Music.Looped = true;
  68. wait(1)
  69. Music:Play();
  70.  
  71. local particleemitter = Instance.new("ParticleEmitter", torso)
  72. particleemitter.Texture = "http://www.roblox.com/asset/?id=0"
  73. particleemitter.VelocitySpread = 180
  74. particleemitter.Lifetime = NumberRange.new(5)
  75. particleemitter.Speed = NumberRange.new(6)
  76. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5)})
  77. particleemitter.RotSpeed = NumberRange.new(-55, 55)
  78. particleemitter.Rate = 150
  79. particleemitter.Rotation = NumberRange.new(-55, 55)
  80. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.7, 0.9), NumberSequenceKeypoint.new(1, 1)})
  81. particleemitter.LightEmission = 0
  82. particleemitter.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255)) --Color here
  83.  
  84.  
  85.  
  86. local plr = game.Players.LocalPlayer
  87. local chr = plr.Character
  88. local maus = plr:GetMouse()
  89. local PGui=plr.PlayerGui
  90. local lleg = chr["Left Leg"]
  91. local rleg = chr["Right Leg"]
  92. local larm = chr["Left Arm"]
  93. local rarm = chr["Right Arm"]
  94. local hed = chr.Head
  95. local rutprt = chr.HumanoidRootPart
  96. local torso = chr.Torso
  97. local pseudohead=hed:Clone()
  98. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  99. pseudohead.Name='PseudoHead'
  100. pseudohead.Parent=chr.Head
  101. local pseudoweld=Instance.new('Weld',torso)
  102. pseudoweld.Part0=hed
  103. pseudoweld.Name='PseudoHeadWeld'
  104. pseudoweld.Part1=pseudohead
  105. hed.Transparency=1
  106. for i,x in pairs(chr:GetChildren()) do
  107. if x:IsA'HHat' then x:destroy'' end end
  108. for i,x in pairs(chr:GetChildren()) do
  109. for a,v in pairs(x:GetChildren()) do
  110. if v:IsA'CharacterMesh' then v:destroy''
  111. end
  112. end
  113. end
  114.  
  115. -- Objects
  116.  
  117. local ScreenGui = Instance.new("ScreenGui")
  118. local TextButton = Instance.new("TextButton")
  119.  
  120. -- Properties
  121.  
  122. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  123.  
  124. TextButton.Parent = ScreenGui
  125. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  126. TextButton.Size = UDim2.new(0, 200, 0, 50)
  127. TextButton.Font = Enum.Font.SourceSans
  128. TextButton.FontSize = Enum.FontSize.Size14
  129. TextButton.Text = "shrek roar"
  130. TextButton.TextSize = 14
  131.  
  132. --[[Function/s being made!]]
  133. function PlayMusic(ID)
  134. for i, v in pairs (game.Workspace:GetChildren()) do
  135. if v:IsA("Sound") then
  136. end
  137. end
  138. local music = Instance.new("Sound")
  139. local asset = "rbxassetid://"
  140. music.SoundId = asset .. ID
  141. music.Parent = workspace
  142. music.Volume = 5469
  143. music.Looped = false
  144. music:Play()
  145. end
  146. --[[Connecting functions!]]
  147. TextButton.MouseButton1Down:connect(function()
  148. PlayMusic(345287845)
  149. end)
  150.  
  151. -- Objects
  152.  
  153. local ScreenGui = Instance.new("ScreenGui")
  154. local TextButton = Instance.new("TextButton")
  155.  
  156. -- Properties
  157.  
  158. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  159.  
  160. TextButton.Parent = ScreenGui
  161. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  162. TextButton.Size = UDim2.new(0, 160, 0, 50)
  163. TextButton.Font = Enum.Font.SourceSans
  164. TextButton.FontSize = Enum.FontSize.Size14
  165. TextButton.Text = "have a bowl,faggot"
  166. TextButton.TextSize = 14
  167.  
  168. --[[Function/s being made!]]
  169. function PlayMusic(ID)
  170. for i, v in pairs (game.Workspace:GetChildren()) do
  171. if v:IsA("Sound") then
  172. end
  173. end
  174. local music = Instance.new("Sound")
  175. local asset = "rbxassetid://"
  176. music.SoundId = asset .. ID
  177. music.Parent = workspace
  178. music.Volume = 999
  179. music.Looped = false
  180. music:Play()
  181. end
  182. --[[Connecting functions!]]
  183. TextButton.MouseButton1Down:connect(function()
  184. PlayMusic(290268197)
  185. end)
  186.  
  187. --This is a localscript; you will need to have access to using scripts wherever you want this
  188. p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
  189.  
  190. print("Finding player... (This may take a little!)")
  191. wait (1)
  192. print("Found player. Now giving the sword.")
  193. local user = game.Players.LocalPlayer.Backpack
  194. local sword = Instance.new("Tool",user)
  195. print("Gave the player the sword. Enjoy!")
  196. local handle = Instance.new("Part",sword)
  197. local mesh = Instance.new("SpecialMesh",handle)
  198. local DAMAGE = 35
  199. local sound = Instance.new("Sound",handle)
  200. local sound2 = Instance.new("Sound",handle)
  201. sword.Name = "Sword"
  202. script.Parent = sword
  203. script.Name = "SwordScript"
  204. --local animation = Instance.new("Animation",script)
  205.  
  206. --animation.AnimationId = "http://www.roblox.com/Asset?ID=992817684"
  207.  
  208. sound.SoundId = "rbxasset://sounds//swordlunge.wav"
  209. sound.Volume = 3
  210. sound.PlaybackSpeed = 1.17
  211. sound.Name = "Slash"
  212. sound2.SoundId = "rbxasset://sounds//unsheath.wav"
  213. sound2.Volume = 3
  214. sound2.PlaybackSpeed = 0.8
  215. sound2.Volume = 3
  216. sound2.Name = "Unsheath"
  217.  
  218. function unsheathanimation()
  219. sword.GripPos = sword.GripPos + Vector3.new(0,5,0)
  220. for i = 1,5 do
  221. sword.GripPos = sword.GripPos + Vector3.new(0,-1,0)
  222. wait (0.1)
  223. end
  224. end
  225.  
  226. function unsheathsound()
  227. sound2:Play()
  228. end
  229.  
  230. function damage(hit)
  231.  
  232. local h = hit.Parent:FindFirstChild("Humanoid")
  233. if (h ~= nil) then
  234. h:TakeDamage(DAMAGE / 4)
  235. end
  236. end
  237.  
  238. function animate()
  239. --4
  240. sound:Play()
  241. for i = 1,5 do
  242. sword.GripUp = sword.GripUp + Vector3.new(0,0,1)
  243. wait (0)
  244. end
  245. sword.GripUp = sword.GripUp + Vector3.new(0,0,-1)
  246. end
  247. handle.Size = handle.Size + Vector3.new(-4,-1,-2)
  248. handle.Size = handle.Size + Vector3.new(0.20, 3.20, 0.20)
  249. handle.Name = "Handle"
  250.  
  251. mesh.MeshType = "FileMesh"
  252. mesh.MeshId = "http://www.roblox.com/asset/?id=442260187"
  253. mesh.TextureId = "http://www.roblox.com/asset/?ID=442260192"
  254. mesh.Offset = mesh.Offset + Vector3.new(1,1,1)
  255.  
  256. sword.Equipped:connect(unsheathanimation)
  257. sword.Equipped:connect(unsheathsound)
  258. wait(sound2.TimeLength)
  259. sword.Activated:connect(animate)
  260. handle.Touched:connect(damage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement