Advertisement
iiX0LordWasTaken

Rainbow Vomit FD Script

Mar 23rd, 2020
2,506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. --[[
  2.  
  3. Rainbow Vomit FD Script
  4. Written By iiX0Lord :D
  5.  
  6. If you edit please give credit
  7.  
  8.  
  9. Press X to start/Stop
  10.  
  11.  
  12.  
  13. Thanks to Infected_Cow for helping with some of the scripting
  14. --]]
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. wait(.5)
  27.  
  28. local key = Enum.KeyCode.X -- The key required to start/stop the vomit
  29.  
  30. --Do not edit anything beyond this point unless you know hwat your doing!!
  31.  
  32.  
  33.  
  34.  
  35. local player = game.Players.LocalPlayer
  36. local character = player.Character
  37. local humanoid = character.Humanoid
  38. local debris = game:GetService("Debris")
  39. local NotificationBindable = Instance.new("BindableFunction")
  40. NotificationBindable.OnInvoke = callback
  41.  
  42.  
  43. local r = game:GetService("RunService")
  44. local c = game:GetService("ContextActionService")
  45.  
  46. local z = Instance.new("Part")
  47. z.Size = Vector3.new(0.25, 0.29, 0.27) -- Size of the vomit
  48. z.Material = "SmoothPlastic"
  49.  
  50. game.StarterGui:SetCore("SendNotification", {
  51. Title = "Rainbow Vomit";
  52. Text = "Rainbow Vomit Made By iiX0Lord";
  53. Icon = "";
  54. Duration = 6;
  55. Callback = NotificationBindable;
  56. })
  57.  
  58.  
  59. function xyz(actionName,inputState,inputObj)-- Starting function
  60. if inputState == Enum.UserInputState.Begin then
  61. r:BindToRenderStep("xyz",1,function()
  62. local offset = Vector3.new(0,-0.3,-0.8)-- Position of the vomit
  63. local x = z:Clone()
  64. x.Color = Color3.fromHSV(tick()%1,1,1)-- Makes it rainbow
  65. x.CFrame = player.Character.HumanoidRootPart.CFrame - Vector3.new(-4,-0.5,0) -- Position of the vomit
  66. x.CFrame = player.Character.Head.CFrame*CFrame.new(offset)
  67. x.Orientation = x.Orientation + Vector3.new(0,-90,0)-- The way it's pointing
  68. x.Parent = workspace
  69. debris:AddItem(x,3)--Waits and deletes the blocks
  70. end)
  71. end
  72. if inputState == Enum.UserInputState.End then -- Ending function
  73. r:UnbindFromRenderStep("xyz")
  74. end
  75. end
  76. c:BindAction("xyz",xyz,false,key)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement