#can anyone help me😭?

103 messages · Page 1 of 1 (latest)

cyan mica
#

Why did I edit that part domain behind me but why is it still in the place where I placed it?(Inside that part there are many MeshParts and Parts)

cyan mica
#

What does that mean? I don't get it._.

lime granite
#

unless its changed via a remote event or the server

cyan mica
lime granite
cyan mica
lime granite
cyan mica
# lime granite uhh yeah

local tool = script.Parent
local highlight = Instance.new("Highlight")
local anim = tool.Animation
local TweenService = game:GetService("TweenService")
local tm = game.Lighting
local replicatedStorage = game.ReplicatedStorage
local domainPartTemplate = replicatedStorage:WaitForChild("DomainPart")
local slash = tool.Blox_cards_slash:Clone()
local cd = false

-- Hàm để reset lại thời gian
local function resetTime()
tm.ClockTime = 14.5
end

-- Hàm xử lý khi nhân vật chết
local function onCharacterDied()
resetTime()
wait(3)
end

#

-- Hàm để gắn Weld cho các phần trong DomainPart
local function weldParts(domainPart)
for _, child in pairs(domainPart:GetChildren()) do
if child:IsA("Part") or child:IsA("MeshPart") then
local weld = Instance.new("WeldConstraint")
weld.Part0 = domainPart
weld.Part1 = child
weld.Parent = child
end
end
end

-- Hàm để tạo và tween DomainPart
local function spawnDomainPart(root)
-- Clone DomainPart từ ReplicatedStorage
local domainPart = domainPartTemplate:Clone()
domainPart.Parent = workspace

-- Gắn Weld cho các phần bên trong DomainPart
weldParts(domainPart)

-- Đặt Part tại vị trí phía sau lưng nhân vật
local spawnPosition = root.Position - root.CFrame.LookVector * 5 + Vector3.new(0, -10, 0)
domainPart.Position = spawnPosition

wait(3)  -- Đợi 3 giây trước khi di chuyển lên

-- Tween di chuyển Part lên trên chân người chơi
local targetPosition = spawnPosition + Vector3.new(0, 10, 0)  -- Vị trí mục tiêu
local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local tween = TweenService:Create(domainPart, tweenInfo, {Position = targetPosition})

tween:Play()
tween.Completed:Wait()  -- Đợi cho tween hoàn thành
return domainPart

end

lime granite
#

WAIT

cyan mica
#

huh

lime granite
#
local function foo()

end)
#

format it please..

cyan mica
#

where._.

lime granite
#

this

cyan mica
#

idk how to do this by pc

lime granite
#

` is next to the 1 key

cyan mica
#

If i Enter, it will send the message instead of unloading the line

lime granite
#

press shift enter

cyan mica
#

Okay

lime granite
#

to make a new line

#

a

cyan mica
#

Oh

lime granite
#

what exactly is the problem

cyan mica
# lime granite what exactly is the problem

uhhhh when I click, I think that when I finish writing the code, the domain will be behind me and it will pop up from bottom to top, but it's still in the place I placed it (I don't know how to describe it)

lime granite
#

i get it

#

the shrine isnt in the right place

cyan mica
#

ye

#

so, do i need to do remote event and script in serverscriptservice?

lime granite
#

no remote events

#

what kind of script r u using

cyan mica
lime granite
cyan mica
#

white

lime granite
#

thats server

cyan mica
#

Is local and script?

#

I don't make server._.i don't know how to make script in server

lime granite
#

its fine how it is

#

you want it in server script

cyan mica
ashen cipherBOT
#

studio** You are now Level 3! **studio

lime granite
cyan mica
lime granite
cyan mica
cyan mica
lime granite
#

ill send it to u

lime granite
cyan mica
lime granite
#

yk sukunas domain

cyan mica
#

uhhhhhhh

#

Script?

lime granite
#

part

#

the model

cyan mica
lime granite
#

@outer lotus help him!

outer lotus
#

he is cooked

cyan mica
#

:0

outer lotus
#

what are you tryna do

#

make a domain expansion from a tool ?

cyan mica
outer lotus
#

are you coherent enough to understand code

#

cause ill help you with the shrine issue.

#
local Shrine = game.ReplicatedStorage.MalevolentShrine
local Tool = script.Parent

local DebounceTime = 100
local DomainDebounce = false

local YOffset = 10
local ZOffset = 15

function DomainExpansion()
    if DomainDebounce then return end
    DomainDebounce = true
    
    local Character = Tool.Parent
    
    local newShrine = Shrine:Clone()
    newShrine:PivotTo(Character.HumanoidRootPart.CFrame * CFrame.new(0,YOffset,ZOffset))
    newShrine.Parent = workspace
    
    game.Debris:AddItem(newShrine, DebounceTime)
    
    task.delay(DebounceTime, function()
        DebounceTime = false
    end)
end

Tool.Activated:Connect(DomainExpansion)
outer lotus
#

tool

#

you need to make changes to your game aswell

#

move the shrine to replicatedstorage

#

and make sure its the model,

cyan mica
cyan mica
outer lotus
#

no

#

what the error

#

you are doing something wrong here

#

also i recommended you learn scripting if your going to do something like this as i am kind of spoon feeding you right now

lime granite
#

i pulled a fast one on u ngl

cyan mica
outer lotus
#

show explorer

cyan mica
outer lotus
#

?

cyan mica
outer lotus
#

change offsets

#

no,

#

actually

#

its your pivot

#

edit your models pivot

#

and reset it

cyan mica
#

uhh okay okay

outer lotus
#

put it in workspace like so

#

go to model > pivot

#

and select edit pivot

#

and reset

#

then unselect it

#

and place it back

cyan mica
outer lotus
#

np