Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script 1
- local NoDuplicates = true
- local WaitTime = .05
- local PartName = 'ExamplePart' -- you can change this name to whatever you'd like
- local rStorage,Players,Debounce = game:GetService('ReplicatedStorage'),game:GetService('Players'),false
- local pClone = rStorage:WaitForChild(PartName):Clone()
- script.Parent.Touched:Connect(function(Part)
- if Debounce then return end
- Debounce = true
- local Rig = Part.Parent
- if Rig:FindFirstChildOfClass('Humanoid') and Players:FindFirstChild(Rig.Name) then
- if NoDuplicates then
- if workspace:FindFirstChild(pClone.Name) then return end
- end
- pClone:Clone().Parent = workspace
- end
- wait(WaitTime)
- Debounce = false
- end)
- ---------
- script 2
- local part = script.Parent
- function Atingere()
- Game.Workspace.pillow.Parent = Game.ServerStorage -- edit 'pillow' to whatever your part/model name is
- script.Parent.BrickColor = BrickColor.new ("Hot pink") -- you can change this color to whatever you'd like
- end
- script.Parent.Touched:Connect(Atingere)
Advertisement
Add Comment
Please, Sign In to add comment