#can anyone help me😭?
103 messages · Page 1 of 1 (latest)
What does that mean? I don't get it._.
if you change something via local script, other plays wont people able to see it.
unless its changed via a remote event or the server
uhhhhhh I don't know how to do RemoteEvent, can you help me?
could jus do server
Do I need to show my script?
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
WAIT
huh
where._.
idk how to do this by pc
` is next to the 1 key
If i Enter, it will send the message instead of unloading the line
press shift enter
Okay
My script is a bit long so I will divide it into 3 parts
Oh
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)
uhhhh i don't understand😖
is it blue or white
white
thats server
i made script in serverscriptservice but it doesn't work,idk._.
** You are now Level 3! **
i'll make something for u to understand
will i send script?
if you mean me yes
uhhh there are some parts that I don't understand very well because my English level is only a little
its cool
so, what should i do now._.
send the shrine
What does that mean,send script or ._.
the malevolent shrine
yk sukunas domain
I took it from the toolbox and I named it DomainPart, I ungrouped the models in that part too
@outer lotus help him!
he is cooked
:0
ye
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)
Place it in the tool or server
tool
you need to make changes to your game aswell
move the shrine to replicatedstorage
and make sure its the model,
okay i will test
uhh it doesn't work, do I need to rename the tool?
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
i pulled a fast one on u ngl
idk but i clicked and it did'nt appear
show explorer
oh i forgot ''', sorry but that domain is above my head
?
change offsets
no,
actually
its your pivot
edit your models pivot
and reset it
uhh okay okay
put it in workspace like so
go to model > pivot
and select edit pivot
and reset
then unselect it
and place it back
i got it,tysm
np