Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Rainbow Vomit FD Script
- Written By iiX0Lord :D
- If you edit please give credit
- Press X to start/Stop
- Thanks to Infected_Cow for helping with some of the scripting
- --]]
- wait(.5)
- local key = Enum.KeyCode.X -- The key required to start/stop the vomit
- --Do not edit anything beyond this point unless you know hwat your doing!!
- local player = game.Players.LocalPlayer
- local character = player.Character
- local humanoid = character.Humanoid
- local debris = game:GetService("Debris")
- local NotificationBindable = Instance.new("BindableFunction")
- NotificationBindable.OnInvoke = callback
- local r = game:GetService("RunService")
- local c = game:GetService("ContextActionService")
- local z = Instance.new("Part")
- z.Size = Vector3.new(0.25, 0.29, 0.27) -- Size of the vomit
- z.Material = "SmoothPlastic"
- game.StarterGui:SetCore("SendNotification", {
- Title = "Rainbow Vomit";
- Text = "Rainbow Vomit Made By iiX0Lord";
- Icon = "";
- Duration = 6;
- Callback = NotificationBindable;
- })
- function xyz(actionName,inputState,inputObj)-- Starting function
- if inputState == Enum.UserInputState.Begin then
- r:BindToRenderStep("xyz",1,function()
- local offset = Vector3.new(0,-0.3,-0.8)-- Position of the vomit
- local x = z:Clone()
- x.Color = Color3.fromHSV(tick()%1,1,1)-- Makes it rainbow
- x.CFrame = player.Character.HumanoidRootPart.CFrame - Vector3.new(-4,-0.5,0) -- Position of the vomit
- x.CFrame = player.Character.Head.CFrame*CFrame.new(offset)
- x.Orientation = x.Orientation + Vector3.new(0,-90,0)-- The way it's pointing
- x.Parent = workspace
- debris:AddItem(x,3)--Waits and deletes the blocks
- end)
- end
- if inputState == Enum.UserInputState.End then -- Ending function
- r:UnbindFromRenderStep("xyz")
- end
- end
- c:BindAction("xyz",xyz,false,key)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement