Anybody notice anything wrong with my script as it doesnt work neither does it show anything in the output.

game.ReplicatedStorage.BuildMode.TeleportPlayer.OnServerEvent:Connect(function(plr)

plr.Character.LowerTorso.CFrame = CFrame.new(game.Workspace:FindFirstChild("Plot-"..plr.Name).TPPart.Position)

print("Teleported "..plr.Name.." out of place or to place.")

end)

  

game.ReplicatedStorage.BuildMode.StopBuildMode.OnServerEvent:Connect(function(plr)

print("Finished Build Mode")

end)

  

game.ReplicatedStorage.BuildMode.PlaceItem.OnServerEvent:Connect(function(plr,itemObj,hit,currentitem)

local cl = game.ReplicatedStorage.Models[currentitem]:Clone()

if cl:IsA("Model") then

print("Placing Model")

cl:FindFirstChild("Part").CFrame = CFrame.new(itemObj.Position)

cl.Parent = workspace["Plot-"..plr.Name]

cl:MakeJoints()

elseif cl:IsA("Part") then

print("Placing Part")

cl.CFrame = CFrame.new(hit.p)

cl.Parent = workspace["Plot-"..plr.Name]

end

end)

  

game.ReplicatedStorage.BuildMode.MovePart.OnServerEvent:Connect(function(plr, targetPart)

game.ReplicatedStorage.BuildMode.MovePartCallback:FireClient(plr,targetPart)

print("Calling back to client")

end)

  

game.ReplicatedStorage.BuildMode.FinishPartMove.OnServerEvent:Connect(function(plr, target, hit)

print("FInished Part Move")

end)

  

game.ReplicatedStorage.BuildMode.PlacePart.OnServerEvent:Connect(function(plr,place)

print("Started Part Creation Process")

local part = Instance.new("Part")

part.Parent = workspace["Plot-"..plr.Name]

part.Name = "Wall"

part.Anchored = true

part.Position = Vector3.new(place)

end)

  

game.ReplicatedStorage.BuildMode.Scale.OnServerEvent:Connect(function(plr,target,hit)

print("Started Part Scale")

if target:IsA("Part") then

print("Initiated Part Scale")

target.Size = Vector3.new(hit.p)

end

end)

  

game.ReplicatedStorage.BuildMode.PlaceIndentModel.OnServerEvent:Connect(function(plr,target,hit,wall)

print("Started Model Indent Union Process")

if wall.Name ~= "BuildmodeFloor" or wall.Name ~= "FirstFloorAttachment" then

if wall:IsA("Part") or wall:IsA("BasePart") then

if target:IsA("Model") then

local targetClone = game.ReplicatedStorage.Models[target.Name]:Clone()

targetClone.Position = Vector3.new(hit.p)

targetClone:MakeJoints()

targetClone.Parent = workspace["Plot-"..plr.Name]

local unioned = wall:SubtractAync(targetClone)

unioned.Parent = workspace["Plot-"..plr.Name]

print("Sucessful Part Union Indent of Model: "..targetClone.Name)

end

end

else

end

end)

7 comments

0

Maybe it's because you're using three dots instead of two for proper concatenation?

0

its 2

0

dude put that stuff in a code block not out in the open

0

No. You put 3 dots where you are concatenating your strings. I'm not blind.

0

It hurts that you have a long code without a code block on it so I can't even read all dis.

0

How do I put it in a code block?

0

No. You did use three dots.