Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local player = workspace:WaitForChild("krijnlol")
- local player2 = Players:WaitForChild(player.Name)
- local head = player:WaitForChild("Head")
- local eventFolder = Instance.new("Folder", player2:WaitForChild("PlayerScripts"))
- eventFolder.Name = "poopScriptEvents"
- local keyPressed = Instance.new("RemoteFunction", eventFolder)
- keyPressed.Name = "keyPressed"
- inputModule = NLS([[
- local player = script.Parent.Parent
- local keyPressed = script.Parent.Parent.PlayerScripts.poopScriptEvents.keyPressed
- local UserInputService = game:GetService("UserInputService")
- local function onInputEnded(inputObject, gameProcessedEvent)
- -- First check if the 'gameProcessedEvent' is true
- -- This indicates that another script had already processed the input, so this one can be ignored
- if gameProcessedEvent then return end
- -- Next, check that the input was a keyboard event
- if inputObject.UserInputType == Enum.UserInputType.Keyboard then
- keyPressed:InvokeServer(inputObject.KeyCode.Name)
- end
- end
- UserInputService.InputEnded:Connect(onInputEnded)
- ]], player2:WaitForChild("PlayerScripts"))
- local function createPOO()
- NewInstance = function(class,parent,properties) pcall(function()
- local instance = Instance.new(class,parent)
- for i,v in next, properties do
- pcall(function()
- instance[i] = v
- end)
- end end)
- end Model = Instance.new('Model',workspace) NewInstance("Part",game.Workspace["Model"],{["Shape"] = Enum.PartType.Ball,["FormFactor"] = Enum.FormFactor.Brick,["formFactor"] = Enum.FormFactor.Brick,["Anchored"] = false,["BackParamA"] = -0.5,["BackParamB"] = 0.5,["BackSurface"] = Enum.SurfaceType.Smooth,["BackSurfaceInput"] = Enum.InputType.NoInput,["BottomParamA"] = -0.5,["BottomParamB"] = 0.5,["BottomSurface"] = Enum.SurfaceType.Smooth,["BottomSurfaceInput"] = Enum.InputType.NoInput,["BrickColor"] = BrickColor.new("Burnt Sienna"),["CFrame"] = CFrame.new(head.Position.X, head.Position.Y - 3, head.Position.Z, 1, 0, 0, 0, 1, 0, 0, 0, 1),["CanCollide"] = true,["Elasticity"] = 0.5,["Friction"] = 0.30000001192093,["FrontParamA"] = -0.5,["FrontParamB"] = 0.5,["FrontSurface"] = Enum.SurfaceType.Smooth,["FrontSurfaceInput"] = Enum.InputType.NoInput,["LeftParamA"] = -0.5,["LeftParamB"] = 0.5,["LeftSurface"] = Enum.SurfaceType.Smooth,["LeftSurfaceInput"] = Enum.InputType.NoInput,["Locked"] = false,["Material"] = Enum.Material.Slate,["Reflectance"] = 0,["RightParamA"] = -0.5,["RightParamB"] = 0.5,["RightSurface"] = Enum.SurfaceType.Smooth,["RightSurfaceInput"] = Enum.InputType.NoInput,["RotVelocity"] = Vector3.new(0, 0, 0),["Rotation"] = Vector3.new(0, 0, 0),["Size"] = Vector3.new(1, 1, 1),["TopParamA"] = -0.5,["TopParamB"] = 0.5,["TopSurface"] = Enum.SurfaceType.Smooth,["TopSurfaceInput"] = Enum.InputType.NoInput,["Transparency"] = 0,["Velocity"] = Vector3.new(0, 0, 0),["Archivable"] = true,["Name"] = "1592153257.2347",["archivable"] = true,})
- return Model
- end
- local Debris = game:GetService("Debris")
- local function input(kai)
- local key = kai.lower()
- if key == "c" then
- local new = createPOO()
- Debris:AddItem(new, 3)
- wait(0.25)
- end
- end
- keyPressed.OnServerInvoke = input
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement