Hi
-
What do you want to achieve? I want a local crumbling tile, a tile that crumbles for those who step on it
-
What is the issue? It doesnt work in a localscript
-
What solutions have you tried so far? I looked for free models, nothing showed up, and other stuff
script: cut out a few parts
local function strootmanAKASTRUDELHAGATEEM()
script.Parent.CanCollide = true
script.Parent.CanTouch = true
script.Parent.Transparency = 0
script.Parent.Color = Color3.new(1, 1, 1)
script.Parent.Rotation = Vector3.new(0, 0, 0)
end
local contiche = true
script.Parent.Touched:Connect(function()
if contiche == true then
script.Parent.Color = Color3.new(1, 0, 0)
script.Parent.CanTouch =false
contiche = false
local q = script.Parent
q.Color = Color3.new(1, 0, 0)
wait(0.2)
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.05,0)
wait(0.0001)
q.Transparency = 0.01
script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.05,0)
wait(0.0001)
q.CanCollide = false
q.CanTouch = false
wait(5)
strootmanAKASTRUDELHAGATEEM()
contiche = true
end
end)
If you can help, that would be great
Confirmation: The tile only falls for the person who touched it
thanks
WooleyWool
(AWildWooleyWool)
#2
Local Scripts don’t work in the workspace, you’ll need to put it in the StarterPlayerScripts and call the tile from there
2 Likes
might help
Also use a Script instead of a LocalScript:
When the part is touched, it will fall
It doesnt regen tho
plus, will the tile fall if only the one person touched it? and it wont fall for others?
1 Like
I redid the script
local function p(HT)
local sl = workspace.Hex
sl.Transparency = 0
sl.CanTouch = true
sl.CanCollide = true
sl.Color = Color3.new(1, 1, 1)
end
local function Vi(H)
local sl = workspace.Hex
sl.Transparency = 0.5
sl.CanTouch = false
sl.CanCollide = true
sl.Color = Color3.new(1, 0.552941, 0.513725)
end
local function S(HTP_)
local sl = workspace.Hex
sl.Transparency = 0.9
sl.CanTouch = false
sl.CanCollide = false
sl.Color = Color3.new(1, 0, 0)
end
workspace.Hex.Touched:Connect(function()
local HTTP = print("!")
p(HTTP)
wait(0.1)
Vi(HTTP)
wait(0.2)
S(HTTP)
wait(5)
workspace.Hex.Transparency = 0
workspace.Hex.CanCollide = true
workspace.Hex.CanTouch = true
workspace.Hex.Color = Color3.new(1, 1, 1)
end)
it still disappears from the server
WooleyWool
(AWildWooleyWool)
#6
This should be done on the client by firing from the server to the client