Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I get the error lookVector95 is not a valid member of CoordinateFrame why and how do I fix it?

Player = game.Players.LocalPlayer

Disabled = false Enabled = false function onKeyDown(key) key = key:lower()

if key == "q" and Enabled == false then Enabled = true local x = Instance.new("Part") x.CanCollide = false x.Transparency = 0.4

local y = Instance.new("FileMesh") y.MeshId = "http://www.roblox.com/asset/?id=13425802" y.TextureId = "http://www.roblox.com/asset/?id=62630305" y.Scale = Vector3.new(5,5,5) x.Name = "Yoru" x.Touched:connect(function(dmg) if dmg.Parent:FindFirstChild("Humanoid") ~= nil and dmg.Parent.ClassName ~= ("Hat") and dmg.Parent.Name ~= Player.Name then dmg.Parent:FindFirstChild("Humanoid").Health = dmg.Parent:FindFirstChild("Humanoid").Health -14 end end)

local p = Instance.new("BodyVelocity") p.maxForce = Vector3.new(math.huge, math.huge, math.huge) p.velocity = Player.Character.Torso.CFrame.lookVector95 x.Parent = Player.Character y.Parent = x p.Parent = x x.CFrame = Player.Character.Torso.CFrameCFrame.new(0,0,-13) x.CFrame = Player.Character.Torso.CFrame*CFrame.new(0,0,-13)*CFrame.Angles(-140, -190, 0) wait(4) game.Debris:AddItem(x, 6) game.Debris:AddItem(y, 6) Enabled = false

end

end

Player:GetMouse().KeyDown:connect(onKeyDown)

1 comment

0

I get the error lookVector95 is not a valid member of CoordinateFrame

1 answer

✓ Accepted answer

You should be using a local script. If you were using a local script you could use "player = game.players.localplayer

This discussion is preserved as it was. New answers, comments, and votes are closed.