Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bindevent=Instance.new("BindableEvent")
- bindevent.Event:Connect(function(Type,item)
- if Type=="noms"then
- while item.Health>0 do
- item.Health=item.Health-item.MaxHealth/600
- wait()
- end
- elseif Type=="heels"then
- while item.Health>0 do
- item.Health=item.MaxHealth
- wait()
- end
- end
- end)
- function hammy(char)
- a=true
- for _,v in pairs(char:GetChildren())do
- if v:IsA("BasePart")then
- v.Material=Enum.Material.ForceField
- v.Touched:Connect(function(Part)
- if Part.Parent:IsA("Model")and a==true then
- if game.Players:GetPlayerFromCharacter(Part.Parent)and Part.Material~=Enum.Material.ForceField then
- if Part.Parent~=char then
- a=false
- hammy("virusghost",Part.Parent)
- wait(1)
- a=true
- end
- end
- end
- end)
- elseif v:IsA("Accessory")then
- v.Handle.Material=Enum.Material.ForceField
- local dec=Instance.new("Decal",v.Handle)
- if v.Handle:FindFirstChild("Mesh")then
- dec.Texture=v.Handle.Mesh.TextureId
- end
- if v.Handle:FindFirstChild("SpecialMesh")then
- dec.Texture=v.Handle.SpecialMesh.TextureId
- end
- dec.Transparency=0.75
- end
- end
- end
- player=game.Players.CarlosRT104
- hammy(player.Character)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement