Hello, im editing a LocalScript, i made a line that only work for normal scripts and i dont know how to edit it to make it work. can someone help me with this?
Line i want to make it work in a LocalScript
script.Parent.Parent.Parent.Model.Eyes_MeshPart.eye_Decal.Texture = "rbxassetid://983391704"
The LocalScript
local mouse = game.Players.LocalPlayer:GetMouse() mouse.KeyUp:connect(function (key) key = string.lower(key) if key == "a" then print("a up") script.Parent.Parent.Parent.Model.Eyes_MeshPart.eye_Decal.Texture = "rbxassetid://983391704" if d == false then m.DesiredAngle = 0 n.DesiredAngle = m.DesiredAngle end elseif key == "d" then print("d up") script.Parent.Parent.Parent.Model.Eyes_MeshPart.eye_Decal.Texture = "rbxassetid://983394022" if a == false then m.DesiredAngle = 0 n.DesiredAngle = m.DesiredAngle end end a = false d = false end)