0% found this document useful (1 vote)
3K views2 pages

Project Delta Mobile Script Code

This script enables a player to toggle an underground animation in a game using the 'U' key. When activated, it modifies the player's position and camera offset while playing a specific animation. Additionally, it hooks into the game's name call method to alter the behavior of the 'UpdateTilt' function when underground mode is enabled.

Uploaded by

esox66
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
3K views2 pages

Project Delta Mobile Script Code

This script enables a player to toggle an underground animation in a game using the 'U' key. When activated, it modifies the player's position and camera offset while playing a specific animation. Additionally, it hooks into the game's name call method to alter the behavior of the 'UpdateTilt' function when underground mode is enabled.

Uploaded by

esox66
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

local RunService = game:GetService('RunService')

local UserInputService = game:GetService('UserInputService')

local LocalPlayer = [Link]


local LocalCharacter = [Link] or [Link]:Wait()
local LocalHumanoid = LocalCharacter:WaitForChild('Humanoid')
local LocalRoot = LocalCharacter:WaitForChild('HumanoidRootPart')

local UndergroundEnabled = false

local AnimationTrack = [Link]('Animation')


[Link] = 'rbxassetid://15609995579'

[Link]:Connect(function(Input, GameProcessed)
if not GameProcessed and [Link] == [Link].U then
UndergroundEnabled = not UndergroundEnabled
end
end)

[Link]:Connect(function()
if LocalHumanoid and UndergroundEnabled then
if not (LocalCharacter and LocalHumanoid and
LocalCharacter:FindFirstChild('HumanoidRootPart')) then
pcall(function()
if Animation then
Animation:Stop()
end
end)
Animation = nil
return
end

if not Animation then


Animation = LocalHumanoid:LoadAnimation(AnimationTrack)
end

local OldCFrame = [Link]


local Offset = [Link]

Animation:Play(0, 1, 0)
[Link] = 2.37

local NewCFrame = OldCFrame * [Link](0, -1.1, 0) *


[Link]([Link](90), 0, 0)
[Link] = 0.1
[Link] = NewCFrame
[Link] =
NewCFrame:ToObjectSpace([Link]([Link])).Position

[Link]:Wait()

Animation:Stop()
[Link] = Offset
[Link] = 1
[Link] = OldCFrame
end
end)

local Nammecall
Namecall = hookmetamethod(game, '__namecall', function(self, ...)
local Method = getnamecallmethod()
local Args = {...}

if not checkcaller() and Method == 'FireServer' and UndergroundEnabled then


if [Link] == 'UpdateTilt' then
Args[1] = 1
end
end

return Namecall(self, unpack(Args))


end)

You might also like