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

How do I make it so a model follows the character when a keybind is pressed?

Asked by 4 years ago
Edited 4 years ago

plr = game.Players.LocalPlayer mouse = plr:GetMouse() stand = script.Stand Enabled = script.Enabled

mouse.KeyDown:Connect(function(key)

if key == "q" and Enabled.Value == false then
game.ReplicatedStorage.MRQ:FireServer()
end

end)

mouse.KeyDown:Connect(function(key)

if key == "e" and Enabled.Value == true then game.ReplicatedStorage.MRE:FireServer() end end)

game.ReplicatedStorage.MRQ.OnServerEvent:Connect(function(plr) end)

0
Please organize your code more! BashGuy10 384 — 4y
0
Well for a model, you could just constantly set the primarypartcframe to the players torso with an offset. BuDeep 214 — 4y

Answer this question