0% found this document useful (1 vote)
257 views8 pages

Message 6asdasdasdasd

The script loads a model asset and anchors it. It then defines a function called f3xbuildpart that creates parts with specified properties and syncs them to the server using remote functions. Depending on the part's properties, it syncs various attributes like color, material, texture and lighting.

Uploaded by

zxzxzx vxcvxcvvc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
257 views8 pages

Message 6asdasdasdasd

The script loads a model asset and anchors it. It then defines a function called f3xbuildpart that creates parts with specified properties and syncs them to the server using remote functions. Depending on the part's properties, it syncs various attributes like color, material, texture and lighting.

Uploaded by

zxzxzx vxcvxcvvc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 8

local model_id = "7040510181"

local imported_model = game:GetObjects("rbxassetid://"..model_id)[1]


imported_model.Parent = workspace
for _,v in next,imported_model:GetDescendants() do
pcall(function()
v.Anchored = true end)

end
local plr = game:service"Players".LocalPlayer
local f3x_name = "Building Tools"
local destination = workspace:FindFirstChild("Private Building
Areas").BmxAlternativeBuildArea.Build
coroutine.wrap(function()
task.wait(10)
imported_model.Parent = nil
end)()
function f3xbuildpart(part_type,cframe, destination, size, transparency,colour,
material, collision, fake_part)

local args = {
[1] = "CreatePart",
[2] = part_type,
[3] = cframe,
[4] = destination
}

local created_part =
game:GetService("Players").LocalPlayer.Character:FindFirstChild(f3x_name).SyncAPI.S
erverEndpoint:InvokeServer(unpack(args))
local args = {
[1] = "SyncResize",
[2] = {
[1] = {
["Part"] = created_part,
["CFrame"] = created_part.CFrame,
["Size"] = size
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild(f3x_name).SyncAPI.S
erverEndpoint:InvokeServer(unpack(args))

local args = {
[1] = "SyncMaterial",
[2] = {
[1] = {
["Part"] = created_part,
["Transparency"] = transparency
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild(f3x_name).SyncAPI.S
erverEndpoint:InvokeServer(unpack(args))

-- THIS REMOTE WAS PREVENTED FROM FIRING THE SERVER BY SIMPLESPY


-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncColor",
[2] = {
[1] = {
["Part"] = created_part,
["Color"] = colour,
["UnionColoring"] = true
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild(f3x_name).SyncAPI.S
erverEndpoint:InvokeServer(unpack(args))

-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncMaterial",
[2] = {
[1] = {
["Part"] = created_part,
["Material"] = material
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild(f3x_name).SyncAPI.S
erverEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncCollision",
[2] = {
[1] = {
["Part"] = created_part,
["CanCollide"] = collision
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild(f3x_name).SyncAPI.S
erverEndpoint:InvokeServer(unpack(args))
if fake_part:FindFirstChildOfClass"Texture" then
local texture = fake_part:FindFirstChildOfClass"Texture"
local args = {
[1] = "CreateTextures",
[2] = {
[1] = {
["Part"] = created_part,
["Face"] = texture.Face,
["TextureType"] = "Texture"
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))

-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncTexture",
[2] = {
[1] = {
["Part"] = created_part,
["Face"] = texture.Face,
["TextureType"] = "Texture",
["StudsPerTileU"] = texture.StudsPerTileU
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
local args = {
[1] = "SyncTexture",
[2] = {
[1] = {
["Part"] = created_part,
["Face"] = texture.Face,
["TextureType"] = "Texture",
["StudsPerTileV"] = texture.StudsPerTileV
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncTexture",
[2] = {
[1] = {
["Part"] = created_part,
["Face"] = texture.Face,
["TextureType"] = "Texture",
["Texture"] = texture.Texture
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncTexture",
[2] = {
[1] = {
["Part"] = created_part,
["Face"] = texture.Face,
["TextureType"] = "Texture",
["Transparency"] = texture.Transparency
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))

end
if fake_part:FindFirstChildOfClass"Decal" then
-- Script generated by SimpleSpy - credits to exx#9394
local decal = fake_part:FindFirstChildOfClass"Decal"
local args = {
[1] = "CreateTextures",
[2] = {
[1] = {
["Part"] = created_part,
["Face"] = decal.Face,
["TextureType"] = "Decal"
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncTexture",
[2] = {
[1] = {
["Part"] = created_part,
["Face"] = decal.Face,
["TextureType"] = "Decal",
["Texture"] = decal.Texture
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncTexture",
[2] = {
[1] = {
["Part"] = created_part,
["Face"] = decal.Face,
["TextureType"] = "Decal",
["Transparency"] = decal.Transparency
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))

end
if fake_part:FindFirstChildOfClass"SpotLight" then
local light = fake_part:FindFirstChildOfClass"SpotLight"
local args = {
[1] = "CreateLights",
[2] = {
[1] = {
["Part"] = fake_part,
["LightType"] = "SpotLight"
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncLighting",
[2] = {
[1] = {
["Part"] = created_part,
["LightType"] = "SpotLight",
["Color"] = light.Color
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncLighting",
[2] = {
[1] = {
["Part"] = created_part,
["LightType"] = "SpotLight",
["Range"] = light.Range
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncLighting",
[2] = {
[1] = {
["Part"] = created_part,
["Face"] = light.Face,
["LightType"] = "SpotLight"
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394
local args = {
[1] = "SyncLighting",
[2] = {
[1] = {
["Part"] = created_part,
["LightType"] = "SpotLight",
["Angle"] = light.Angle
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncLighting",
[2] = {
[1] = {
["Part"] = created_part,
["LightType"] = "SpotLight",
["Shadows"] = light.Shadows
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))

end
if fake_part:FindFirstChildOfClass"PointLight" then
local light = fake_part:FindFirstChildOfClass"PointLight"
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "CreateLights",
[2] = {
[1] = {
["Part"] = created_part,
["LightType"] = "PointLight"
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncLighting",
[2] = {
[1] = {
["Part"] = created_part,
["LightType"] = "PointLight",
["Color"] = light.Color
}
}
}
game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncLighting",
[2] = {
[1] = {
["Part"] = created_part,
["LightType"] = "PointLight",
["Range"] = light.Range
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))
-- Script generated by SimpleSpy - credits to exx#9394

local args = {
[1] = "SyncLighting",
[2] = {
[1] = {
["Part"] = created_part,
["LightType"] = "PointLight",
["Shadows"] = light.Shadows
}
}
}

game:GetService("Players").LocalPlayer.Character:FindFirstChild("Building
Tools").SyncAPI.ServerEndpoint:InvokeServer(unpack(args))

end

end
plr:GetMouse().Button1Down:Wait()
plr:GetMouse().TargetFilter = imported_model
imported_model:MoveTo(plr:GetMouse().Hit.p)

for _,part in next,imported_model:GetDescendants() do


task.wait(.25)
if part:IsA"Part" then
if part.Shape == Enum.PartType.Block then

f3xbuildpart("Normal",part.CFrame,destination,part.Size,part.Transparency,part.Colo
r,part.Material,part.CanCollide,part)
------
elseif part.Shape == Enum.PartType.Ball then

f3xbuildpart("Ball",part.CFrame,destination,part.Size,part.Transparency,part.Color,
part.Material,part.CanCollide,part)
elseif part.Shape == Enum.PartType.Cylinder then

f3xbuildpart("Cylinder",part.CFrame,destination,part.Size,part.Transparency,part.Co
lor,part.Material,part.CanCollide,part)

end
end
if part:IsA"WedgePart" then

f3xbuildpart("Wedge",part.CFrame,destination,part.Size,part.Transparency,part.Color
,part.Material,part.CanCollide,part)
elseif part:IsA"Seat" then
f3xbuildpart("Seat",part.CFrame,destination,part.Size,part.Transparency,part.Color,
part.Material,part.CanCollide,part)

elseif part:IsA"TrussPart" then

f3xbuildpart("Truss",part.CFrame,destination,part.Size,part.Transparency,part.Color
,part.Material,part.CanCollide,part)
elseif part:IsA"VehicleSeat" then

f3xbuildpart("Vehicle
Seat",part.CFrame,destination,part.Size,part.Transparency,part.Color,part.Material,
part.CanCollide,part)

end
end
print"finished build"

You might also like