Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ⚡ KODA LANDING PAD EFFECT
- Made by Koda – dev anywhere. No PC needed.
- ]]
- local part = script.Parent
- local TweenService = game:GetService("TweenService")
- local flashInfo = TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
- part.Touched:Connect(function(hit)
- local hum = hit.Parent:FindFirstChild("Humanoid")
- if not hum then return end
- -- quick yellow flash when a player arrives
- local flash = TweenService:Create(part, flashInfo, {Color = Color3.new(1,1,0)})
- flash:Play()
- flash.Completed:Wait()
- part.Color = Color3.fromRGB(0,170,255)
- end)
Advertisement
Add Comment
Please, Sign In to add comment