#flips

27 messages · Page 1 of 1 (latest)

stone lake
#

I got animation so far i have it to where if i dash using Q it will do the animation but at some point lets say i run and move my camera around and i try and dash forward again it does an side dash instead of forward dash so yeah i need help

#

I have an tilt so idk if thats the problem it might be honestly but I wouldn’t know how to fix it

stone lake
#

Which one u want u want the tilt script or dash script

#

@carmine bone

carmine bone
#

dash

hollow wigeonBOT
#

studio** You are now Level 10! **studio

carmine bone
#

and tilt

stone lake
#

""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

carmine bone
#

kk

stone lake
#

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

carmine bone
#

can i see where ur handling the dash

#

on the server

stone lake
#

the message is to long

#

i cant send it

carmine bone
#

send it as a txt

stone lake
#

idk how i tried with the first one

carmine bone
#

hit enter

#

then upload as txt

#

or just put it in a text file

#

and send it here

stone lake
carmine bone
#

eh idk

#

ill check again when im not sick

#

if u didnt solve it by thern