#flips
27 messages · Page 1 of 1 (latest)
I have an tilt so idk if thats the problem it might be honestly but I wouldn’t know how to fix it
can u send the script
dash
** You are now Level 10! **
and tilt
""local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local ReplicatedStorage = game.ReplicatedStorage
local UIS = game.UserInputService
local DashEvent = ReplicatedStorage.Remotes.Dash
local UIS = game.UserInputService
local ReplicatedStorage = game.ReplicatedStorage
local DashEvent = ReplicatedStorage.Remotes.Dash
local Key = Enum.KeyCode.Q
local Direction
local Duration = 0.2 -- Adjust as needed
local Cooldown = 1
local IsOnCooldown = false
local Velocity = 45
local MaxForce = Vector3.new(50000, 50000, 50000)
UIS.InputBegan:Connect(function(Input, GameProcessed)
if GameProcessed then return end
if Input.KeyCode == Key and not IsOnCooldown then
IsOnCooldown = true
DashEvent:FireServer(Duration, Velocity, MaxForce, Character)
task.wait(Cooldown)
IsOnCooldown = false
end
end) ""
thats the dash
kk
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = script.Parent
local Humanoid = Character:WaitForChild"Humanoid"
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Torso = Character.Torso
local RootJoint = HumanoidRootPart.RootJoint
local LeftHipJoint = Torso["Left Hip"]
local RightHipJoint = Torso["Right Hip"]
local RootJointC0 = RootJoint.C0
local LeftHipJointC0 = LeftHipJoint.C0
local RightHipJointC0 = RightHipJoint.C0
local Force = nil
local ForceOfTilt = 5
local Direction = nil
local Value1 = 0
local Value2 = 0
local function Lerp(a, b, c)
return a + (b - a) * c
end
local function Tilt()
RootJoint.C0 = RootJoint.C0:Lerp(RootJointC0 * CFrame.Angles(math.rad(Value2 * ForceOfTilt), math.rad(-Value1 * ForceOfTilt), 0), 0.2)
LeftHipJoint.C0 = LeftHipJoint.C0:Lerp(LeftHipJointC0 * CFrame.Angles(math.rad(Value1 * ForceOfTilt), 0, 0), 0.2)
RightHipJoint.C0 = RightHipJoint.C0:Lerp(RightHipJointC0 * CFrame.Angles(math.rad(-Value1 * ForceOfTilt), 0, 0), 0.2)
end
RunService.RenderStepped:Connect(function()
Force = HumanoidRootPart.Velocity * Vector3.new(10,0,10)
if Force.Magnitude > 2 then
Direction = Force.Unit
Value1 = HumanoidRootPart.CFrame.RightVector:Dot(Direction)
Value2 = HumanoidRootPart.CFrame.LookVector:Dot(Direction)
Tilt()
else
Value1 = 0
Value2 = 0
end
end)
this is tilt
send it as a txt
idk how i tried with the first one
z