Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local module = {}
- local plrService = game:GetService('Players')
- local player = plrService.LocalPlayer
- local camera = workspace.CurrentCamera
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid: Humanoid = character:WaitForChild("Humanoid")
- local hrp: BasePart = character:WaitForChild("HumanoidRootPart")
- local repStorage = game:GetService("ReplicatedStorage")
- local remote = repStorage.Remotes.Events.KB
- module.Init = function()
- remote.OnClientEvent:Connect(function(kb, tipe)
- if tipe == "b" then
- local fecForce = script.BodyVelocity:Clone()
- fecForce.MaxForce = Vector3.new(math.huge,0,math.huge)
- fecForce.Parent = character
- fecForce.Velocity = kb
- game.Debris:AddItem(fecForce, .3)
- end
- end)
- end
- return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement