|
Is there a way to make a script that, whenever you touch a brick with CanCollide off, you can "swim" through it with the same physics as the Terrain water?
i'm back | in the middle of spaghetti road | add 420 trillion posts |
|
|
I don't think so, never seen a normal brick that has those physics.
But nothing is impossible... |
|
|
You could put terrain water for the looks, and an invisible, CanCollide false brick covering the terrain water. |
|
Klink45Join Date: 2011-06-06 Post Count: 26054 |
@power
Then the CanCollide false brick is pointless. |
|
|
Invisible + Cancollide = false
That's a Part which does nothing |
|
|
No, I mean for interacting with the Terrain Water. |
|
|
The water would be Visible then, read his post |
|
|
I think he wants a block that would allow you to use the terrain water swimming animation but it's not actually a terrain block |
|
|
Try extracting the swimming animation from ROBLOX and add an event in which when the player touches your water brick, it plays the animation. Here is a script that may be helpful.
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
Mouse.KeyDown:connect(function(Key)
---------------------------------------------------
if Player then
if Player.Character then
---------------------------------------------------
local Humanoid = Player.Character.Humanoid
local Animation = wherever the animation object is held with the animation ID
local Activate = Humanoid:LoadAnimation(Animation)
---------------------------------------------------
if your event then
Player.Character.Animate.Disabled = true
Activate:Play()
wait(1)
Activate:Stop()
Player.Character.Animate.Disabled = false
end
end
end
end)
|
|
|
|
Does that solve your issue? |
|
|
Where is the water animation?
i'm back | in the middle of spaghetti road | add 420 trillion posts |
|
|
In the player...Have you any experience? If not this may be a little more complex than I originally thought it would be. |
|
|
@above
Yeah, I don't have very much experience. I'm sorry.
i'm back | in the middle of spaghetti road | add 420 trillion posts |
|
|
Thats ok. I am learning aswell. I'm busy, so when i'm ready to give you the answer It will be my next post.
|
|
V |
|
VallorumJoin Date: 2012-09-08 Post Count: 140 |
he said in 2015 |
|
Kid_BotJoin Date: 2011-06-26 Post Count: 144 |
xd |
|