Anybody notice anything wrong with my script as it doesnt work neither does it show anything in the output.
001 | game.ReplicatedStorage.BuildMode.TeleportPlayer.OnServerEvent:Connect( function (plr) |
003 | plr.Character.LowerTorso.CFrame = CFrame.new(game.Workspace:FindFirstChild( "Plot-" ..plr.Name).TPPart.Position) |
005 | print ( "Teleported " ..plr.Name.. " out of place or to place." ) |
011 | game.ReplicatedStorage.BuildMode.StopBuildMode.OnServerEvent:Connect( function (plr) |
013 | print ( "Finished Build Mode" ) |
019 | game.ReplicatedStorage.BuildMode.PlaceItem.OnServerEvent:Connect( function (plr,itemObj,hit,currentitem) |
021 | local cl = game.ReplicatedStorage.Models [ currentitem ] :Clone() |
023 | if cl:IsA( "Model" ) then |
025 | print ( "Placing Model" ) |
027 | cl:FindFirstChild( "Part" ).CFrame = CFrame.new(itemObj.Position) |
029 | cl.Parent = workspace [ "Plot-" ..plr.Name ] |
033 | elseif cl:IsA( "Part" ) then |
037 | cl.CFrame = CFrame.new(hit.p) |
039 | cl.Parent = workspace [ "Plot-" ..plr.Name ] |
047 | game.ReplicatedStorage.BuildMode.MovePart.OnServerEvent:Connect( function (plr, targetPart) |
049 | game.ReplicatedStorage.BuildMode.MovePartCallback:FireClient(plr,targetPart) |
051 | print ( "Calling back to client" ) |
057 | game.ReplicatedStorage.BuildMode.FinishPartMove.OnServerEvent:Connect( function (plr, target, hit) |
059 | print ( "FInished Part Move" ) |
065 | game.ReplicatedStorage.BuildMode.PlacePart.OnServerEvent:Connect( function (plr,place) |
067 | print ( "Started Part Creation Process" ) |
069 | local part = Instance.new( "Part" ) |
071 | part.Parent = workspace [ "Plot-" ..plr.Name ] |
077 | part.Position = Vector 3. new(place) |
083 | game.ReplicatedStorage.BuildMode.Scale.OnServerEvent:Connect( function (plr,target,hit) |
085 | print ( "Started Part Scale" ) |
087 | if target:IsA( "Part" ) then |
089 | print ( "Initiated Part Scale" ) |
091 | target.Size = Vector 3. new(hit.p) |
099 | game.ReplicatedStorage.BuildMode.PlaceIndentModel.OnServerEvent:Connect( function (plr,target,hit,wall) |
101 | print ( "Started Model Indent Union Process" ) |
103 | if wall.Name ~ = "BuildmodeFloor" or wall.Name ~ = "FirstFloorAttachment" then |
105 | if wall:IsA( "Part" ) or wall:IsA( "BasePart" ) then |
107 | if target:IsA( "Model" ) then |
109 | local targetClone = game.ReplicatedStorage.Models [ target.Name ] :Clone() |
111 | targetClone.Position = Vector 3. new(hit.p) |
113 | targetClone:MakeJoints() |
115 | targetClone.Parent = workspace [ "Plot-" ..plr.Name ] |
117 | local unioned = wall:SubtractAync(targetClone) |
119 | unioned.Parent = workspace [ "Plot-" ..plr.Name ] |
121 | print ( "Sucessful Part Union Indent of Model: " ..targetClone.Name) |