I am making a flash like script so when you press F it tpes the player to the direction of the mouse
script():
local Flash = Instance.new("RemoteEvent") Flash.Name = "FlashService" Flash.Parent = game.ReplicatedStorage local function FlashAtEm(plr) local mouse = plr:GetMouse() local Char = plr.Character local Hooman = Char.Humanoid Char.UpperTorso.Position = mouse.Hit.p end Flash.OnServerEvent:Connect(FlashAtEm)
localscript():
local UIS = game:GetService("UserInputService") local Remote = game.ReplicatedStorage:FindFirstChild("FlashService") UIS.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.F then Remote:FireServer() end end)
Just change the "Normal" Script not Local.
al Flash = Instance.new("RemoteEvent") Flash.Name = "FlashService" Flash.Parent = game.ReplicatedStorage local function FlashAtEm(plr) local mouse = plr:GetMouse() local Char = plr.Character local Hooman = Char.Humanoid Char:SetPrimaryPartCFrame(CFrame.new(mouse.Hit.p)) end Flash.OnServerEvent:Connect(FlashAtEm)
-- Hope this works