Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.Position.OnServerEvent:connect(function(plr,Pos)
- local Laser = Instance.new("Part", workspace)
- local Noise = workspace.Sun.Sound
- Laser.Name = "Laser"
- Laser.Anchored = true
- Laser.CanCollide = false
- Laser.BrickColor = BrickColor.new("New Yeller")
- Laser.Material = "SmoothPlastic"
- Noise.Playing = true
- Noise.TimePosition = 0
- Laser.Touched:connect(function(bruh)
- local Humanoid = bruh.Parent:FindFirstChild("Humanoid")
- if Humanoid then
- Humanoid.Health = 0
- end
- end)
- local X = Pos.X
- local Y = Pos.Y
- local Z = Pos.Z
- Laser.CFrame = CFrame.new((workspace.Sun.Position + Vector3.new(X,Y,Z))/2,Vector3.new(X,Y,Z))
- Laser.Size = Vector3.new(3,3,(Pos - workspace.Sun.Position).Magnitude)
- for i=1,10 do
- wait(0.02)
- Laser.Size = Vector3.new(Laser.Size.X+0.2,Laser.Size.Y+0.2,(Pos - workspace.Sun.Position).Magnitude)
- Laser.Transparency = Laser.Transparency+0.2
- end
- wait(0.02)
- Laser:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement