I have a remote event tied up to a server-side script that is supposed to create a Beam object tied to the player's hand and the target object named "RequestBus". The beam won't show up. This is driving me insane please help
Local Script:
local Mouse = game.Players.LocalPlayer:GetMouse()
game.ReplicatedStorage.AllEffects:FireServer({"Laser",Mouse.Target})
Server script:
game.ReplicatedStorage.AllEffects.OnServerEvent:Connect(function(player,tabl)
if tabl[1] == "Laser" then
local target = tabl[2]
if target.Name == "RequestBus" then
local laser = Instance.new("Beam")
laser.Name = "PortableLaser"
laser.Color = ColorSequence.new(Color3.fromRGB(255,0,0))
local A0 = Instance.new("Attachment")
A0.Name = "LaserAttachment0"
A0.Parent = player.Character.RightHand
lA0.Position = Vector3.new(player.Character.RightHand.CFrame.p)
local A1 = Instance.new("Attachment")
A1.Name = "LaserAttachment1"
A1.Parent = target
lA1.Position = target.Position
laser.Parnet
laser.Parent = player.Character.RightHand
laser.Attachment0 = A0
laser.Attachment1 = A0
end
end)
