ARISE CROSSOVER [🎃HALLOWEEN]
11.8k Views
9 Executions

OPEN SOURCE FOR REFERENCE

ARISE CROSSOVER
Bray
BrayPublished 5
2 years ago
Please login to perform these actions:

OPEN SOURCE FOR REFERENCE is an ARISE CROSSOVER script for Roblox, uploaded to ScriptBlox on Apr 10, 2025.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

For reference and skid only

View Raw
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer

local tween

local function TweenToPosition(targetCFrame, speed)
    local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
    local humanoid = character:WaitForChild("Humanoid")
    local rootPart = character:WaitForChild("HumanoidRootPart")

    if humanoid.Health <= 0 then
        if tween then tween:Cancel() end
        repeat task.wait() until humanoid.Health > 0
        task.wait(0.2)
        return
    end

    
    local offset = CFrame.new(0, 0, -getgenv().TweenOffset) 
    local adjustedCFrame = targetCFrame * offset

    local distance = (rootPart.Position - adjustedCFrame.Position).Magnitude
    if distance <= 150 then
        pcall(function()
            if tween then tween:Cancel() end
            rootPart.CFrame = adjustedCFrame
        end)
        return
    end

    speed = speed or (distance < 1000 and 315 or 300)
    local tweenInfo = TweenInfo.new(distance / speed, Enum.EasingStyle.Linear)
    tween = TweenService:Create(rootPart, tweenInfo, {CFrame = adjustedCFrame})
    tween:Play()

    return { Stop = function() tween:Cancel() end }
end




Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!