Hello! I’ve gotten a problem with a clone script. It’s a Server-Side Script.
But it doesn’t print nor clone anything.
All help will be appriciated!
Hello! I’ve gotten a problem with a clone script. It’s a Server-Side Script.
But it doesn’t print nor clone anything.
All help will be appriciated!
slash1 and slash2 should have anchored set to true and Transparency set to 0
-- get a reference to tool
local tool = script.Parent
-- get a reference to Slash1
local slash1 = script.Parent.Slash.Slash1
-- get a reference to Slash2
local slash2 = script.Parent.Slash.Slash2
-- hide slash1 and slash2 by setting there parents to nil
slash1.Parent = nil
slash2.Parent = nil
-- when the tool is activated call this function
tool.Activated:Connect(function()
print("Activated Started")
-- Clone Slash 1
local slashClone1 = slash1:Clone()
-- Position Slash 1
slashClone1.CFrame = tool.Handle.CFrame
-- Set Slash 1 Parent to workspace
slashClone1.Parent = workspace
-- Clone Slash 2
local slashClone2 = slash2:Clone()
-- Position Slash 2
slashClone2.CFrame = tool.Handle.CFrame
-- Set Slash 2 Parent to workspace
slashClone2.Parent = workspace
print("Activated Ended")
end)