Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 8 years ago
Edited 8 years ago

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.CFrameCFrame.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)

0
I get the error lookVector95 is not a valid member of CoordinateFrame iGlaciem 72 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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

Ad

Answer this question