#Running Script While In a Morph Problem

1 messages · Page 1 of 1 (latest)

swift canopy
#

bad video quality cuz discord sucks
also had no clue what tag to do so uhh yeah dont mind it

So Basically, I Have a Running Script Which Works Outside The Morph. Working With Left Shift
And I Have A Morphing Script That Works As Shown In The Video

Now I Want The Running Script To Work, While You Are Morphed Into The Current Morph
And The Problem Is I Have No Clue On How To Do That

These Are The Current Scripts

  1. Running Script

local UserInputService = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")

UserInputService.InputBegan:Connect(function(input, gameprocessed)

if input.KeyCode == Enum.KeyCode.LeftShift then
    Humanoid.WalkSpeed = 24
end

end)

UserInputService.InputEnded:Connect(function(input, gameprocessed)

if input.KeyCode == Enum.KeyCode.LeftShift then
    Humanoid.WalkSpeed = 12
end

end)

  1. Morph Script

local model = script.Parent
local prompt = model.Prompt.ProximityPrompt

prompt.Triggered:Connect(function(player)
local Oldcharacter = player.Character
local Newcharacter = model.DRL:Clone()

Newcharacter.HumanoidRootPart.Anchored = false
Newcharacter:SetPrimaryPartCFrame(Oldcharacter.PrimaryPart.CFrame)

player.Character = Newcharacter
Newcharacter.Parent = workspace

end)

swift sleet
swift canopy
swift sleet
#

reconnect the running logic when morphing happens

#

the running script is not being applied to the morph

#

as u arent referencing the morph character

dapper ventureBOT
#

studio** You are now Level 8! **studio

swift canopy
swift sleet
#

your running script uses the humanoid of your initial character

#

not the one in the morph