Advertisement
DaOMEGAa32

baby shark script (WARNING CRINGY AND CRAP)

Sep 12th, 2019
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.06 KB | None | 0 0
  1. ----Pinkfong! WAIT WHAT
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,game,owner = owner,game
  5. local RealPlayer = Player
  6. do
  7. print("FE Compatibility code V2 by Mokiros")
  8. local RealPlayer = RealPlayer
  9. script.Parent = RealPlayer.Character
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local Disconnect_Function = function(this)
  13. this[1].Functions[this[2]] = nil
  14. end
  15. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  16. local FakeEvent_Metatable = {__index={
  17. Connect = function(this,f)
  18. local i = tostring(math.random(0,10000))
  19. while this.Functions[i] do
  20. i = tostring(math.random(0,10000))
  21. end
  22. this.Functions[i] = f
  23. return setmetatable({this,i},Disconnect_Metatable)
  24. end
  25. }}
  26. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  27. local function fakeEvent()
  28. return setmetatable({Functions={}},FakeEvent_Metatable)
  29. end
  30.  
  31. --Creating fake input objects with fake variables
  32. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  33. FakeMouse.keyUp = FakeMouse.KeyUp
  34. FakeMouse.keyDown = FakeMouse.KeyDown
  35. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  36. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  37. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  38. end}
  39. --Merged 2 functions into one by checking amount of arguments
  40. CAS.UnbindAction = CAS.BindAction
  41.  
  42. --This function will trigger the events that have been :Connect()'ed
  43. local function TriggerEvent(self,ev,...)
  44. for _,f in pairs(self[ev].Functions) do
  45. f(...)
  46. end
  47. end
  48. FakeMouse.TriggerEvent = TriggerEvent
  49. UIS.TriggerEvent = TriggerEvent
  50.  
  51. --Client communication
  52. local Event = Instance.new("RemoteEvent")
  53. Event.Name = "UserInput_Event"
  54. Event.OnServerEvent:Connect(function(plr,io)
  55. if plr~=RealPlayer then return end
  56. FakeMouse.Target = io.Target
  57. FakeMouse.Hit = io.Hit
  58. if not io.isMouse then
  59. local b = io.UserInputState == Enum.UserInputState.Begin
  60. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  61. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  62. end
  63. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  64. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  65. end
  66. for _,t in pairs(CAS.Actions) do
  67. for _,k in pairs(t.Keys) do
  68. if k==io.KeyCode then
  69. t.Function(t.Name,io.UserInputState,io)
  70. end
  71. end
  72. end
  73. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  74. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  75. end
  76. end)
  77. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  78. local Mouse = owner:GetMouse()
  79. local UIS = game:GetService("UserInputService")
  80. local input = function(io,RobloxHandled)
  81. if RobloxHandled then return end
  82. --Since InputObject is a client-side instance, we create and pass table instead
  83. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  84. end
  85. UIS.InputBegan:Connect(input)
  86. UIS.InputEnded:Connect(input)
  87.  
  88. local h,t
  89. --Give the server mouse data every second frame, but only if the values changed
  90. --If player is not moving their mouse, client won't fire events
  91. local HB = game:GetService("RunService").Heartbeat
  92. while true do
  93. if h~=Mouse.Hit or t~=Mouse.Target then
  94. h,t=Mouse.Hit,Mouse.Target
  95. Event:FireServer({isMouse=true,Target=t,Hit=h})
  96. end
  97. --Wait 2 frames
  98. for i=1,2 do
  99. HB:Wait()
  100. end
  101. end]==],script)
  102.  
  103. ----Sandboxed game object that allows the usage of client-side methods and services
  104. --Real game object
  105. local RealGame = game
  106.  
  107. --Metatable for fake service
  108. local FakeService_Metatable = {
  109. __index = function(self,k)
  110. local s = rawget(self,"_RealService")
  111. if s then
  112. return typeof(s[k])=="function"
  113. and function(_,...)return s[k](s,...)end or s[k]
  114. end
  115. end,
  116. __newindex = function(self,k,v)
  117. local s = rawget(self,"_RealService")
  118. if s then s[k]=v end
  119. end
  120. }
  121. local function FakeService(t,RealService)
  122. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  123. return setmetatable(t,FakeService_Metatable)
  124. end
  125.  
  126. --Fake game object
  127. local FakeGame = {
  128. GetService = function(self,s)
  129. return rawget(self,s) or RealGame:GetService(s)
  130. end,
  131. Players = FakeService({
  132. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  133. },"Players"),
  134. UserInputService = FakeService(UIS,"UserInputService"),
  135. ContextActionService = FakeService(CAS,"ContextActionService"),
  136. RunService = FakeService({
  137. _btrs = {},
  138. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  139. BindToRenderStep = function(self,name,_,fun)
  140. self._btrs[name] = self.Heartbeat:Connect(fun)
  141. end,
  142. UnbindFromRenderStep = function(self,name)
  143. self._btrs[name]:Disconnect()
  144. end,
  145. },"RunService")
  146. }
  147. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  148. FakeGame.service = FakeGame.GetService
  149. FakeService(FakeGame,game)
  150. --Changing owner to fake player object to support owner:GetMouse()
  151. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  152. end
  153.  
  154. print ("why the crap did i even made this")
  155. print ("Baby shark, doo doo doo doo doo doo Baby shark, doo doo doo doo doo doo Baby shark, doo doo doo doo doo doo Baby shark!Mommy shark, doo doo doo doo doo dooMommy shark, doo doo doo doo doo dooMommy shark, doo doo doo doo doo dooMommy shark!!")
  156. local s = Instance.new("Sound")
  157.  
  158. s.Name = "sans true theme"
  159. s.SoundId = "rbxassetid://2284160768"
  160. s.Volume = 6
  161. s.Looped = true
  162. s.archivable = false
  163.  
  164. s.Parent = game.Workspace
  165.  
  166. wait(0.1)
  167.  
  168. s:play()
  169. CV="White"
  170.  
  171. p = game.Players.LocalPlayer
  172. char = p.Character
  173. local txt = Instance.new("BillboardGui", char)
  174. txt.Adornee = char .Head
  175. txt.Name = "_status"
  176. txt.Size = UDim2.new(2, 0, 1.2, 0)
  177. txt.StudsOffset = Vector3.new(-9, 8, 0)
  178. local text = Instance.new("TextLabel", txt)
  179. text.Size = UDim2.new(10, 0, 7, 0)
  180. text.FontSize = "Size24"
  181. text.TextScaled = true
  182. text.TextTransparency = 0
  183. text.BackgroundTransparency = 1
  184. text.TextTransparency = 0
  185. text.TextStrokeTransparency = 1
  186. text.Font = "Arcade"
  187. text.TextStrokeColor3 = Color3.fromRGB(255,0,0)
  188.  
  189. v=Instance.new("Part")
  190. v.Name = "ColorBrick"
  191. v.Parent=p.Character
  192. v.FormFactor="Symmetric"
  193. v.Anchored=true
  194. v.CanCollide=false
  195. v.BottomSurface="Smooth"
  196. v.TopSurface="Smooth"
  197. v.Size=Vector3.new(10,5,3)
  198. v.Transparency=1
  199. v.CFrame=char.Torso.CFrame
  200. v.BrickColor=BrickColor.new(CV)
  201. v.Transparency=1
  202. text.TextColor3 = Color3.fromRGB(255, 255, 0)
  203. v.Shape="Block"
  204. text.Text = "Baby shark!"
  205. char = game:service'Players'.LocalPlayer.Character
  206. m = game:service'Players'.LocalPlayer:GetMouse()
  207. ----now to the cringy part oh wait is cringe in start noo
  208. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 50
  209. local pchar = game.Players.LocalPlayer.Character
  210. local duck = Instance.new("SpecialMesh", pchar.Torso)
  211. duck.MeshType = "FileMesh"
  212. duck.MeshId = "http://www.roblox.com/asset/?id=82821384"
  213. duck.TextureId = "http://www.roblox.com/asset/?id=82844051"
  214. duck.Scale = Vector3.new(5, 5, 5)
  215. pchar.Head.Transparency = 1
  216. pchar["Left Arm"].Transparency = 1
  217. pchar["Right Arm"].Transparency = 1
  218. pchar["Left Leg"].Transparency = 1
  219. pchar["Right Leg"].Transparency = 1
  220. local Victim='xVortex_ray'
  221. local A=Instance.new'Animation'
  222. A.AnimationId='rbxassetid://182435998'
  223. local P=game:GetService'Players'.LocalPlayer
  224. local C=P.Character or P.CharacterAdded:Wait()
  225. local H=C:WaitForChild'Humanoid':LoadAnimation(A)
  226. H:Play()
  227. H:AdjustSpeed(631)
  228. while wait(0.1) do
  229. C:WaitForChild'HumanoidRootPart'.CFrame=CFrame.new(game:GetService'Players':FindFirstChild(Victim).Character:WaitForChild'HumanoidRootPart'.Position)
  230. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement