Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Does anybody notice anything wrong with this script? It doesnt work or show anything in the output

Asked by 6 years ago
Edited by User#24403 6 years ago

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

001game.ReplicatedStorage.BuildMode.TeleportPlayer.OnServerEvent:Connect(function(plr)
002 
003plr.Character.LowerTorso.CFrame = CFrame.new(game.Workspace:FindFirstChild("Plot-"..plr.Name).TPPart.Position)
004 
005print("Teleported "..plr.Name.." out of place or to place.")
006 
007end)
008 
009   
010 
011game.ReplicatedStorage.BuildMode.StopBuildMode.OnServerEvent:Connect(function(plr)
012 
013print("Finished Build Mode")
014 
015end)
016 
017   
018 
019game.ReplicatedStorage.BuildMode.PlaceItem.OnServerEvent:Connect(function(plr,itemObj,hit,currentitem)
020 
021local cl = game.ReplicatedStorage.Models[currentitem]:Clone()
022 
023if cl:IsA("Model") then
024 
025print("Placing Model")
026 
027cl:FindFirstChild("Part").CFrame = CFrame.new(itemObj.Position)
028 
029cl.Parent = workspace["Plot-"..plr.Name]
030 
031cl:MakeJoints()
032 
033elseif cl:IsA("Part") then
034 
035print("Placing Part")
036 
037cl.CFrame = CFrame.new(hit.p)
038 
039cl.Parent = workspace["Plot-"..plr.Name]
040 
041end
042 
043end)
044 
045   
046 
047game.ReplicatedStorage.BuildMode.MovePart.OnServerEvent:Connect(function(plr, targetPart)
048 
049game.ReplicatedStorage.BuildMode.MovePartCallback:FireClient(plr,targetPart)
050 
051print("Calling back to client")
052 
053end)
054 
055   
056 
057game.ReplicatedStorage.BuildMode.FinishPartMove.OnServerEvent:Connect(function(plr, target, hit)
058 
059print("FInished Part Move")
060 
061end)
062 
063   
064 
065game.ReplicatedStorage.BuildMode.PlacePart.OnServerEvent:Connect(function(plr,place)
066 
067print("Started Part Creation Process")
068 
069local part = Instance.new("Part")
070 
071part.Parent = workspace["Plot-"..plr.Name]
072 
073part.Name = "Wall"
074 
075part.Anchored = true
076 
077part.Position = Vector3.new(place)
078 
079end)
080 
081   
082 
083game.ReplicatedStorage.BuildMode.Scale.OnServerEvent:Connect(function(plr,target,hit)
084 
085print("Started Part Scale")
086 
087if target:IsA("Part") then
088 
089print("Initiated Part Scale")
090 
091target.Size = Vector3.new(hit.p)
092 
093end
094 
095end)
096 
097   
098 
099game.ReplicatedStorage.BuildMode.PlaceIndentModel.OnServerEvent:Connect(function(plr,target,hit,wall)
100 
101print("Started Model Indent Union Process")
102 
103if wall.Name ~= "BuildmodeFloor" or wall.Name ~= "FirstFloorAttachment" then
104 
105if wall:IsA("Part") or wall:IsA("BasePart") then
106 
107if target:IsA("Model") then
108 
109local targetClone = game.ReplicatedStorage.Models[target.Name]:Clone()
110 
111targetClone.Position = Vector3.new(hit.p)
112 
113targetClone:MakeJoints()
114 
115targetClone.Parent = workspace["Plot-"..plr.Name]
116 
117local unioned = wall:SubtractAync(targetClone)
118 
119unioned.Parent = workspace["Plot-"..plr.Name]
120 
121print("Sucessful Part Union Indent of Model: "..targetClone.Name)
122 
123end
124 
125end
126 
127else
128 
129end
130 
131end)
0
Maybe it's because you're using three dots instead of two for proper concatenation? DeceptiveCaster 3761 — 6y
0
its 2 BenjySmb 16 — 6y
0
dude put that stuff in a code block not out in the open AAzterr 27 — 6y
0
No. You put 3 dots where you are concatenating your strings. I'm not blind. DeceptiveCaster 3761 — 6y
View all comments (3 more)
0
It hurts that you have a long code without a code block on it so I can't even read all dis. songboy50 77 — 6y
0
How do I put it in a code block? BenjySmb 16 — 6y
0
No. You did use three dots. User#24403 69 — 6y

Answer this question