wait(1)
player = game.Players.LocalPlayer
torso = player.Character:WaitForChild("Torso")
mouse = player:GetMouse()
enabled = true
mouse.KeyDown:connect(function(key)
if key == "l" and enabled == true then
game:GetService("Chat"):Chat(player.Character.Head, "Light Beam Version 1.1")
enabled = false
Light = Instance.new("Part", game.Workspace)
Light.Name = player.Name
Light.Size = Vector3.new(2.8, 3.8, 2.8)
Light.Rotation = Vector3.new(-180, 0, -180) ------- Rotation tested......
Light.CanCollide = false
Light.Shape = "Cylinder"
Light.BrickColor = BrickColor.new("Institutional White")
Light.Transparency = .15
Light.BackSurface = "Smooth"
Light.BottomSurface = "Smooth"
Light.FrontSurface = "Smooth"
Light.LeftSurface = "Smooth"
Light.RightSurface = "Smooth"
Light.TopSurface = "Smooth"
dmg = script.OnLight:Clone()
dmg.Parent = Light
y = Instance.new("BodyVelocity",Light)
y.maxForce = Vector3.new(math.huge, math.huge, math.huge)
Light.CFrame = player.Character.Torso.CFrame*CFrame.new(0,0,-5)
y.Velocity =player.Character.Torso.CFrame.lookVector*100
Light.CanCollide = false
wait(.5)
Light:Destroy()
wait(.5)
enabled = true
end
end)
I tried doing Light.Rotation = Vector3.new(1,2,3) -- Random numbers But nothing happens
