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

How do I make something move the direction the player's facing?

Asked by 10 years ago

Anyone explain how people do it? I don't need a script.

My script:

player = game.Players.LocalPlayer
mouse = player:GetMouse()
mouse.KeyDown:connect(function(key)
        key = key:lower()
    if key == "q" then
for i = 1,1 do
    wait()
    f = Instance.new("Part", game.Workspace)
    f.Size = Vector3.new(10,10,10)
    f.CanCollide = false
    f.BrickColor = BrickColor.new("Bright red")
    f.Transparency = 0.3
    f.Name = "MeraBlast1"
    f.Anchored = true
    f.CFrame = player.Character.Torso.CFrame * CFrame.new(0,0,-5+-i) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random())
    dmg = game.ReplicatedStorage.MeraDmg1:Clone()
    dmg.Parent = f
    fi = Instance.new("Fire", f)
    fi.Size = 10
    o =  Instance.new("StringValue", f)
    o.Name = "Owner"
    o.Value = player.Name
end
wait(5)
        player.Character.Torso.Anchored = false
f.Parent = game.Lighting
    end
end)
1
protip: `CFrame.Angles` is the same thing as `CFrame.fromEulerAnglesXYZ`, but much shorter and easier to type BlueTaslem 18071 — 10y
0
Thx ^ Operation_Meme 890 — 10y

Answer this question