local Stand = script.Parent.TheWorld
local SummonModule = {}
SummonModule.ActivateStand = function(plr)
local Stand = Stand:Clone()
Stand.Parent = plr.Parent.Character
Stand.Name = "Stand"
Stand.position = plr.Parent.Character.HumanoidRootPart.Position + Vector3.new(0,2,2)
local Werld = Instance.new("WeldConstraint",plr.Character)
Werld.Part0 = Stand.HumanoidRootPart
Werld.Part1 = plr.Parent.Character.HumanoidRootPart
end
return SummonModule
Module script
local RepStorage = game:GetService("ReplicatedStorage")
local RemoteFolder = RepStorage:WaitForChild("RemoteFolder")
local SummonStandEvent = RemoteFolder:WaitForChild("ActivateStand")
local StandSummonModule = require(script.Stands:WaitForChild("SummonStand"))
local SummonStandRemote = RemoteFolder:WaitForChild("ActivateStand")
local function ActivateStand()
StandSummonModule.ActivateStand()
end
SummonStandRemote.OnServerEvent:Connect(ActivateStand)
