Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local Player = game:GetService("Players").LocalPlayer
- local map = workspace.Multiplayer:WaitForChild("Map")
- for i, d in ipairs(map:GetDescendants()) do
- if d.Name == "_Lighting" then
- d.Parent.Touched:Connect(function(h)
- if d:GetAttribute("debounce") == false and h.Parent == Player.Character then
- d:SetAttribute("debounce", true)
- local props = {}
- for _, p in ipairs(d:GetChildren()) do
- props[p.Name] = p.Value
- end
- TweenService:Create(game.Lighting,
- TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),
- props
- ):Play()
- end
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement