#Tryna make the player a ball that rolls but this happens

1 messages · Page 1 of 1 (latest)

hearty isle
#

I will pass the local script in here

local RunService = game:GetService("RunService")
local camera = workspace.CurrentCamera
local players = game:GetService("Players")
local storage = game:GetService("ReplicatedStorage")
local event = game.ReplicatedStorage.MakePlayerBallSignal
local player = game.Players.LocalPlayer
local Playerball = game.ReplicatedStorage.Playerball:Clone()
local UserInputService = game:GetService("UserInputService")

event.OnClientEvent:Connect(function(PlayerModel)
local Char = player.Character or player.CharacterAdded:Wait()
local Weld = Instance.new("WeldConstraint")
Weld.Parent = Playerball
Weld.Part0 = Playerball
Weld.Part1 = Char.HumanoidRootPart
Playerball.Position = Char.PrimaryPart.Position + Vector3.new(0, 0, 0)
Playerball.Parent = Char
local humanoid = Char:WaitForChild("Humanoid")
local Platformstand = Enum.HumanoidStateType.PlatformStanding
humanoid.PlatformStand = true
task.wait(0.1)
humanoid.PlatformStand = true

local vectorforce = Instance.new("VectorForce")
vectorforce.Parent = Playerball
vectorforce.RelativeTo = Enum.ActuatorRelativeTo.Attachment0
vectorforce.Attachment0 = Playerball.Attachment
vectorforce.ApplyAtCenterOfMass = true
Playerball:WaitForChild("VectorForce").Force = Vector3.new(1, 0, 1)

camera.CameraType = Enum.CameraType.Custom
camera.CameraSubject = Playerball

UserInputService.InputBegan:Connect(function(input, gameProcessed)
if input.KeyCode == Enum.KeyCode.W then
Playerball:WaitForChild("VectorForce").Force = Playerball.VectorForce.Force * (camera.CFrame.LookVector * Vector3.new(10,0,10))
end
end)

end)

Sorry if the code is absolute dogtrash

#

Btw that happens when you spam the W

lunar blaze
#

maybe ur just giving it too much force?

tired fractal
#

and whats the friction