0% found this document useful (1 vote)
2K views3 pages

Roblox Laser Eyes Script

The document describes a Roblox script that creates laser eyes for a character. When the player clicks their mouse, two laser trails will extend from the character's head towards the click. Any objects hit by the lasers will catch fire and burn/change color before being destroyed. The script attaches necessary parts and effects to the character to create the illusion of laser eyes.

Uploaded by

Decri Kivon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
2K views3 pages

Roblox Laser Eyes Script

The document describes a Roblox script that creates laser eyes for a character. When the player clicks their mouse, two laser trails will extend from the character's head towards the click. Any objects hit by the lasers will catch fire and burn/change color before being destroyed. The script attaches necessary parts and effects to the character to create the illusion of laser eyes.

Uploaded by

Decri Kivon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

--MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: Go to line 4 and put your name

where it says "YOUR NAME HERE"

name = "dylanmillicankid"
me = [Link][name]
char = [Link]
selected = false
function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
[Link] = parent
[Link] = form
[Link] = collide
[Link] = tran
[Link] = ref
[Link] = [Link](x,y,z)
[Link] = [Link](color)
[Link] = 0
[Link] = 0
[Link] = anchor
[Link] = true
part:BreakJoints()
end
function weld(w, p, p1, a, b, c, x, y, z)
[Link] = p
w.Part0 = p
w.Part1 = p1
w.C1 = [Link](a,b,c) * [Link](x,y,z)
end
function mesh(mesh, parent, x, y, z, type)
[Link] = parent
[Link] = [Link](x, y, z)
[Link] = type
end
sword = [Link]("Model",[Link])
[Link] = "Eyes"
--Parts-------------------------Parts-------------------------
Parts-------------------------Parts----------------------
head = char:findFirstChild("Head")
torso = char:findFirstChild("Torso")
bg = [Link]("BodyGyro",nil)
bg.P = 2000
[Link] = [Link](0,[Link],0)
trail1 = [Link]("Part")
prop(trail1,nil,false,0.4,0,0.1,0.1,1,"Toothpaste",true,"Custom")
local t1 = [Link]("SpecialMesh",trail1)
[Link] = "Brick"
trail2 = [Link]("Part")
prop(trail2,nil,false,0.4,0,0.1,0.1,1,"Toothpaste",true,"Custom")
local t2 = [Link]("SpecialMesh",trail2)
[Link] = "Brick"
local fb = [Link]("Part")
prop(fb,nil,false,1,0,0.1,0.1,0.1,"Toothpaste",true,"Custom")
local fi = [Link]("Fire",fb)
[Link] = "LolFire"
[Link] = 2
[Link] = 25
t1p = [Link](-0.3,0.3,-0.55)
t2p = [Link](0.3,0.3,-0.55)
function getp(path)
local objs = {}
for _,v in pairs(path:children()) do
if v:IsA("BasePart") then
if v:GetMass() < 30 then
[Link](objs,v)
end
end
for _,k in pairs(v:children()) do
if k:IsA("BasePart") then
if k:GetMass() < 30 then
[Link](objs,k)
end
end
for _,o in pairs(k:children()) do
if o:IsA("BasePart") then
if o:GetMass() < 30 then
[Link](objs,o)
end
end
end
end
end
return objs
end
if [Link] ~= "HopperBin" then
h = [Link]("HopperBin",[Link])
[Link] = "LazorEyez"
[Link] = h
end
bin = [Link]
[Link]:connect(function(mouse)
mouse.Button1Down:connect(function()
hold = true
[Link] = torso
[Link] = char
[Link] = char
[Link] = char
while hold do
local p1 = [Link] * [Link](t1p).p
local p2 = [Link] * [Link](t2p).p
local dist1 = (p1 - [Link].p).magnitude
local dist2 = (p2 - [Link].p).magnitude
[Link] = [Link]([Link], [Link].p)
[Link] = [Link](p1,[Link].p) * [Link](0,0,-dist1/2)
[Link] = [Link](p2,[Link].p) * [Link](0,0,-dist2/2)
[Link] = [Link](1,1,dist1)
[Link] = [Link](1,1,dist2)
local lol1 = [Link](p1,[Link].p) * [Link](0,0,-dist1)
[Link] = lol1
local parts = getp(workspace)
for _,v in pairs(parts) do
if ([Link] - lol1.p).magnitude < 2 then
if v:findFirstChild("LolFire") == nil then
local f = [Link]("Fire",v)
[Link] = 0
[Link] = 5
[Link] = "LolFire"
[Link]([Link](function()
for i=0,10,0.2 do
wait(0.1)
[Link] = i
[Link] = i
local lol = [Link](1,2)
if lol == 1 then
[Link] = [Link]("Neon orange")
else
[Link] = [Link]("Bright red")
end
end
v:remove()
end))
end
end
end
wait()
end
end)
mouse.Button1Up:connect(function()
hold = false
[Link] = nil
[Link] = nil
[Link] = nil
[Link] = nil
end)
end)

You might also like