Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tweenService = game:GetService("TweenService")
- local part = Instance.new("Part", game.Workspace)
- part.Anchored = true
- part.CanCollide = false
- part.Locked = true
- part.Touched:connect(function(hit)
- local n = hit.Parent:FindFirstChildWhichIsA("Humanoid")
- if not n then
- return
- end
- end)
- local tweeningInformation = TweenInfo.new(
- 120, -- Length
- Enum.EasingStyle.Bounce, -- Easing style of the TweenInfo
- Enum.EasingDirection.Out, -- Easing direction of the TweenInfo
- 0, -- Number of times the tween will repeat
- false, -- Should the tween repeat?
- 0 -- Delay between each tween
- )
- local partProperties = {
- Size = Vector3.new(2048,2048,2048);
- Color = Color3.new(255, 0, 0);
- Transparency = 0.5
- }
- local Tween = tweenService:Create(part,tweeningInformation,partProperties)
- Tween:Play()
- local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=437318220"
- s.Volume = 100
- s.archivable = false
- s.Parent = game.Workspace
- s:play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement